@IntegrationTest public class ShippingSourcingEndToEndIntegrationTest extends BaseSourcingIntegrationTest
| Modifier and Type | Field and Description |
|---|---|
static String |
CODE_BOSTON |
static String |
CODE_MONTREAL |
Map<ConsignmentEntryModel,Long> |
declineEntryInfo |
static String |
NAME_MONTREAL_DOWNTOWN |
addresses, atpFormulas, baseStores, deliveryModes, orders, pointsOfService, products, restockConfigService, sourcingService, stockLevels, users, warehousesflexibleSearchService, modelService, sessionService, springCustomContextLoaderdefaultLanguage, jaloSession| Constructor and Description |
|---|
ShippingSourcingEndToEndIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setup() |
void |
shouldSource1Fail_ForceOutOfStock()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} |
void |
shouldSource1ProductFrom1LocationAndDecline()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} |
void |
shouldSource1ProductFrom1LocationWithoutPos()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} |
void |
shouldSource1ProductFrom2Location()
>>>>>>> develop Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} |
void |
shouldSource2ProductFrom1Location()
Given an shipping order with 2 entries:
entry 1 : {quantity: 3, product: camera} entry 2 : {quantity: 4, product: memoryCard} |
void |
shouldSource2ProductFrom2Location()
======= assertTrue( allocationResult.stream().allMatch(result ->
result.getStockLevel().getWarehouse().getCode().equals(CODE_MONTREAL)));
assertTrue(allocationResult.stream().anyMatch(result -> result.getQuantity() == 3));
assertTrue(allocationResult.stream().anyMatch(result -> result.getQuantity() == 4)); }
/** Given an shipping order with 2 entries:
entry 1 : {quantity: 3, product: camera} entry 2 : {quantity: 4, product: memoryCard} |
void |
shouldSourceSuccess_ForceInOfStock()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} |
assertSourcingResultContents, getAllocationForProduct, refreshOrder, resetFactors, setSourcingFactors, setupBaseStore, setupShopper, verifyConsignment_Camera_MemoryCard, verifyConsignment_CamerasaveAll, setupBaseSitecreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic static final String CODE_MONTREAL
public static final String CODE_BOSTON
public static final String NAME_MONTREAL_DOWNTOWN
public Map<ConsignmentEntryModel,Long> declineEntryInfo
public ShippingSourcingEndToEndIntegrationTest()
public void setup()
public void shouldSource1ProductFrom1LocationAndDecline()
Result:
It should source complete from 1 location, Montreal
Decline should works well
public void shouldSource2ProductFrom1Location()
Result:
It should source complete from 1 location, Montreal
public void shouldSource2ProductFrom2Location()
Result:
It should source complete from 2 locations
public void shouldSource1ProductFrom2Location()
Result:
It should source complete from 2 locations
public void shouldSource1ProductFrom1LocationWithoutPos()
Result:
It should source complete from warehouse which doesn't belong to POS
public void shouldSource1Fail_ForceOutOfStock()
Result:
verify force out of stock
public void shouldSourceSuccess_ForceInOfStock()
Result:
verify force in of stock
Copyright © 2017 SAP SE. All Rights Reserved.