public class BaseSourcingIntegrationTest extends BaseWarehousingIntegrationTest
| Modifier and Type | Field and 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 |
flexibleSearchService, modelService, sessionService, springCustomContextLoaderimportServicejaloSession| Constructor and Description |
|---|
BaseSourcingIntegrationTest() |
| Modifier and Type | Method and 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() |
saveAll, setupBaseSitecreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionprotected SourcingService sourcingService
protected Orders orders
protected BaseStores baseStores
protected Warehouses warehouses
protected Addresses addresses
protected StockLevels stockLevels
protected DeliveryModes deliveryModes
protected PointsOfService pointsOfService
protected Products products
protected Users users
protected Asns asns
protected AtpFormulas atpFormulas
protected RestockConfigService restockConfigService
public void setupShopper()
public void setupBaseStore()
public void resetFactors()
protected void assertSourcingResultContents(SourcingResults results, WarehouseModel expectedWarehouse, java.util.Map<ProductModel,java.lang.Long> expectedAllocation)
results - expectedWarehouse - expectedAllocation - protected void setSourcingFactors(BaseStoreModel baseStore, int allocation, int distance, int priority, int score)
baseStore - allocation - distance - priority - protected OrderModel refreshOrder(OrderModel order)
order - Copyright © 2018 SAP SE. All Rights Reserved.