public class BaseSourcingIntegrationTest extends BaseWarehousingIntegrationTest
| Modifier and Type | Field and Description |
|---|---|
protected Addresses |
addresses |
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, springCustomContextLoaderdefaultLanguage, jaloSession| Constructor and Description |
|---|
BaseSourcingIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected Long |
getAllocationForProduct(SourcingResult result,
ProductModel product)
Get the quantity allocated for the order entry with the given product.
|
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() |
Boolean |
verifyConsignment_Camera_MemoryCard(OrderModel order,
String location,
Long quantityDeclined_Camera,
Long quantityAllocated_Camera,
Long quantityDeclined_MemoryCard,
Long quantityAllocated_MemoryCard) |
Boolean |
verifyConsignment_Camera(OrderModel order,
String location,
Long quantityDeclined,
Long quantityAllocated,
Long quantityPending) |
saveAll, setupBaseSitecreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedprotected 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 AtpFormulas atpFormulas
protected RestockConfigService restockConfigService
public void setupShopper()
public void setupBaseStore()
public void resetFactors()
protected void assertSourcingResultContents(SourcingResults results, WarehouseModel expectedWarehouse, Map<ProductModel,Long> expectedAllocation)
results - expectedWarehouse - expectedAllocation - protected void setSourcingFactors(BaseStoreModel baseStore, int allocation, int distance, int priority, int score)
baseStore - allocation - distance - priority - protected Long getAllocationForProduct(SourcingResult result, ProductModel product)
result - product - public Boolean verifyConsignment_Camera(OrderModel order, String location, Long quantityDeclined, Long quantityAllocated, Long quantityPending)
public Boolean verifyConsignment_Camera_MemoryCard(OrderModel order, String location, Long quantityDeclined_Camera, Long quantityAllocated_Camera, Long quantityDeclined_MemoryCard, Long quantityAllocated_MemoryCard)
protected OrderModel refreshOrder(OrderModel order)
order - Copyright © 2017 SAP SE. All Rights Reserved.