Package de.hybris.platform.warehousing
Class ShippingSourcingEndToEndIntegrationTest
- 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
-
- de.hybris.platform.warehousing.ShippingSourcingEndToEndIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class ShippingSourcingEndToEndIntegrationTest extends BaseSourcingIntegrationTest
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class de.hybris.platform.warehousing.util.BaseSourcingIntegrationTest
addresses, asns, atpFormulas, baseStores, deliveryModes, orders, pointsOfService, products, restockConfigService, sourcingService, stockLevels, users, 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 ShippingSourcingEndToEndIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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}-
Methods inherited from class de.hybris.platform.warehousing.util.BaseSourcingIntegrationTest
assertSourcingResultContents, refreshOrder, resetFactors, setSourcingFactors, setupBaseStore, 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
-
CODE_MONTREAL
public static final java.lang.String CODE_MONTREAL
- See Also:
- Constant Field Values
-
CODE_BOSTON
public static final java.lang.String CODE_BOSTON
- See Also:
- Constant Field Values
-
NAME_MONTREAL_DOWNTOWN
public static final java.lang.String NAME_MONTREAL_DOWNTOWN
- See Also:
- Constant Field Values
-
declineEntryInfo
public java.util.Map<ConsignmentEntryModel,java.lang.Long> declineEntryInfo
-
-
Method Detail
-
setup
public void setup()
-
shouldSource1ProductFrom1LocationAndDecline
public void shouldSource1ProductFrom1LocationAndDecline()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}
Result:
It should source complete from 1 location, Montreal
Decline should works well
-
shouldSource1ProductFrom1Location_MultiStockLevels_WithASN
public void shouldSource1ProductFrom1Location_MultiStockLevels_WithASN()
-
shouldSource1ProductFrom1Location_ManyStockLevels_Decline
public void shouldSource1ProductFrom1Location_ManyStockLevels_Decline()
-
shouldSource2ProductFrom1Location
public void shouldSource2ProductFrom1Location()
Given an shipping order with 2 entries:
entry 1 : {quantity: 3, product: camera}
entry 2 : {quantity: 4, product: memoryCard}
Result:
It should source complete from 1 location, Montreal
-
shouldSource2ProductFrom2Location
public 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}
Result:
It should source complete from 2 locations
-
shouldSource1ProductFrom2Location
public void shouldSource1ProductFrom2Location()
>>>>>>> develop Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}
Result:
It should source complete from 2 locations
-
shouldSource1ProductFrom1LocationWithoutPos
public void shouldSource1ProductFrom1LocationWithoutPos()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}
Result:
It should source complete from warehouse which doesn't belong to POS
-
shouldSource1Fail_ForceOutOfStock
public void shouldSource1Fail_ForceOutOfStock()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}
Result:
verify force out of stock
-
shouldSourceSuccess_ForceInOfStock
public void shouldSourceSuccess_ForceInOfStock()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}
Result:
verify force in of stock
-
shouldGetStocksByDate_nullFirst_ascending_allocation
public void shouldGetStocksByDate_nullFirst_ascending_allocation() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
-