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
public class BaseSourcingIntegrationTest extends BaseWarehousingIntegrationTest
-
-
Field Summary
Fields Modifier and Type Field Description protected Addresses
addresses
protected Asns
asns
protected AtpFormulas
atpFormulas
protected BaseStores
baseStores
protected DeliveryModes
deliveryModes
protected Orders
orders
protected PointsOfService
pointsOfService
protected Products
products
protected RestockConfigService
restockConfigService
protected SourcingService
sourcingService
protected StockLevels
stockLevels
protected Users
users
protected Warehouses
warehouses
-
Fields inherited from class de.hybris.platform.warehousing.util.BaseWarehousingIntegrationTest
flexibleSearchService, modelService, sessionService, springCustomContextLoader
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description BaseSourcingIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assertSourcingResultContents(SourcingResults results, WarehouseModel expectedWarehouse, java.util.Map<ProductModel,java.lang.Long> expectedAllocation)
Assert that the sourcing result selected the correct warehouse and sourced the correct quantity.protected OrderModel
refreshOrder(OrderModel order)
refresh order.void
resetFactors()
protected void
setSourcingFactors(BaseStoreModel baseStore, int allocation, int distance, int priority, int score)
Sets the sourcing factors to use.void
setupBaseStore()
void
setupShopper()
-
Methods inherited from class de.hybris.platform.warehousing.util.BaseWarehousingIntegrationTest
saveAll, setupBaseSite
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Field Detail
-
sourcingService
protected SourcingService sourcingService
-
orders
protected Orders orders
-
baseStores
protected BaseStores baseStores
-
warehouses
protected Warehouses warehouses
-
addresses
protected Addresses addresses
-
stockLevels
protected StockLevels stockLevels
-
deliveryModes
protected DeliveryModes deliveryModes
-
pointsOfService
protected PointsOfService pointsOfService
-
products
protected Products products
-
users
protected Users users
-
asns
protected Asns asns
-
atpFormulas
protected AtpFormulas atpFormulas
-
restockConfigService
protected RestockConfigService restockConfigService
-
-
Method Detail
-
setupShopper
public void setupShopper()
-
setupBaseStore
public void setupBaseStore()
-
resetFactors
public void resetFactors()
-
assertSourcingResultContents
protected void assertSourcingResultContents(SourcingResults results, WarehouseModel expectedWarehouse, java.util.Map<ProductModel,java.lang.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
protected OrderModel refreshOrder(OrderModel order)
refresh order.- Parameters:
order
-- Returns:
-
-