Class BaseSourcingIntegrationTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.servicelayer.ServicelayerTransactionalTest
de.hybris.platform.warehousing.util.BaseWarehousingIntegrationTest
de.hybris.platform.warehousing.util.BaseSourcingIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
DefaultSourcingBanDaoTest,ManualDeclineEndToEndIntegrationTest,PickUpSourcingEndToEndIntegrationTest,ShippingSourcingEndToEndIntegrationTest,SourceDeliveryHugeEntriesIntegrationTest,SourceDeliveryMultiEntriesIntegrationTest,SourceDeliverySingleEntryIntegrationTest,SourcePickupSingleEntryIntegrationTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Addressesprotected Asnsprotected AtpFormulasprotected BaseStoresprotected DeliveryModesprotected Ordersprotected PointsOfServiceprotected Productsprotected RestockConfigServiceprotected SourcingServiceprotected StockLevelsprotected Usersprotected WarehousesFields inherited from class de.hybris.platform.warehousing.util.BaseWarehousingIntegrationTest
flexibleSearchService, modelService, sessionService, springCustomContextLoaderFields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertSourcingResultContents(SourcingResults results, WarehouseModel expectedWarehouse, Map<ProductModel, Long> expectedAllocation) Assert that the sourcing result selected the correct warehouse and sourced the correct quantity.protected OrderModelrefreshOrder(OrderModel order) refresh order.voidprotected voidsetSourcingFactors(BaseStoreModel baseStore, int allocation, int distance, int priority, int score) Sets the sourcing factors to use.voidvoidMethods inherited from class de.hybris.platform.warehousing.util.BaseWarehousingIntegrationTest
saveAll, setupBaseSiteMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Field Details
-
sourcingService
-
orders
-
baseStores
-
warehouses
-
addresses
-
stockLevels
-
deliveryModes
-
pointsOfService
-
products
-
users
-
asns
-
atpFormulas
-
restockConfigService
-
-
Constructor Details
-
BaseSourcingIntegrationTest
public BaseSourcingIntegrationTest()
-
-
Method Details
-
setupShopper
public void setupShopper() -
setupBaseStore
public void setupBaseStore() -
resetFactors
public void resetFactors() -
assertSourcingResultContents
protected void assertSourcingResultContents(SourcingResults results, WarehouseModel expectedWarehouse, Map<ProductModel, Long> expectedAllocation) Assert that the sourcing result selected the correct warehouse and sourced the correct quantity.- Parameters:
results-expectedWarehouse-expectedAllocation-
-
setSourcingFactors
protected void setSourcingFactors(BaseStoreModel baseStore, int allocation, int distance, int priority, int score) Sets the sourcing factors to use.- Parameters:
baseStore-allocation-distance-priority-
-
refreshOrder
refresh order.- Parameters:
order-- Returns:
-