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
FieldsFields inherited from class de.hybris.platform.warehousing.util.BaseSourcingIntegrationTest
addresses, asns, atpFormulas, baseStores, deliveryModes, orders, pointsOfService, products, restockConfigService, sourcingService, stockLevels, users, warehousesFields inherited from class de.hybris.platform.warehousing.util.BaseWarehousingIntegrationTest
flexibleSearchService, modelService, sessionService, springCustomContextLoaderFields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetup()voidvoidGiven an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}voidvoidvoidGiven an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}voidGiven an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}void>>>>>>> develop Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}voidGiven an shipping order with 2 entries:
entry 1 : {quantity: 3, product: camera}
entry 2 : {quantity: 4, product: memoryCard}void======= 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}voidGiven 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, setupShopperMethods inherited from class de.hybris.platform.warehousing.util.BaseWarehousingIntegrationTest
saveAll, setupBaseSiteMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Field Details
-
CODE_MONTREAL
- See Also:
-
CODE_BOSTON
- See Also:
-
NAME_MONTREAL_DOWNTOWN
- See Also:
-
declineEntryInfo
-
-
Constructor Details
-
ShippingSourcingEndToEndIntegrationTest
public ShippingSourcingEndToEndIntegrationTest()
-
-
Method Details
-
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
- Throws:
InterruptedException
-