@IntegrationTest public class ShippingSourcingEndToEndIntegrationTest extends BaseSourcingIntegrationTest
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CODE_BOSTON |
static java.lang.String |
CODE_MONTREAL |
java.util.Map<ConsignmentEntryModel,java.lang.Long> |
declineEntryInfo |
static java.lang.String |
NAME_MONTREAL_DOWNTOWN |
addresses, asns, atpFormulas, baseStores, deliveryModes, orders, pointsOfService, products, restockConfigService, sourcingService, stockLevels, users, warehousesflexibleSearchService, modelService, sessionService, springCustomContextLoaderimportServicejaloSession| Constructor and Description |
|---|
ShippingSourcingEndToEndIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setup() |
void |
shouldGetStocksByDate_nullFirst_ascending_allocation() |
void |
shouldSource1Fail_ForceOutOfStock()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} |
void |
shouldSource1ProductFrom1Location_ManyStockLevels_Decline() |
void |
shouldSource1ProductFrom1Location_MultiStockLevels_WithASN() |
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, refreshOrder, resetFactors, setSourcingFactors, setupBaseStore, setupShoppersaveAll, setupBaseSitecreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic static final java.lang.String CODE_MONTREAL
public static final java.lang.String CODE_BOSTON
public static final java.lang.String NAME_MONTREAL_DOWNTOWN
public java.util.Map<ConsignmentEntryModel,java.lang.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 shouldSource1ProductFrom1Location_MultiStockLevels_WithASN()
public void shouldSource1ProductFrom1Location_ManyStockLevels_Decline()
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
public void shouldGetStocksByDate_nullFirst_ascending_allocation()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionCopyright © 2018 SAP SE. All Rights Reserved.