Package de.hybris.platform.warehousing
Class ManualDeclineEndToEndIntegrationTest
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.ManualDeclineEndToEndIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest
public class ManualDeclineEndToEndIntegrationTest
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()voidGiven 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}voidGiven 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}voidGiven 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}voidGiven an shipping order with 2 entries:
entry 1 : {quantity: 3, product: camera}
entry 2 : {quantity: 3, product: memoryCard}voidGiven an shipping order with 2 entries:
entry 1 : {quantity: 3, product: camera}
entry 2 : {quantity: 3, 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
-
ManualDeclineEndToEndIntegrationTest
public ManualDeclineEndToEndIntegrationTest()
-
-
Method Details
-
setup
public void setup() -
shouldManualDecline_SuccessReSourced
public void shouldManualDecline_SuccessReSourced()Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}
Result:
Manual Decline should SUCCESS without insufficient stock
-
shouldManualDecline_SuccessReSourcedTwice
public void shouldManualDecline_SuccessReSourcedTwice()Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}
Result:
Manual Decline should SUCCESS without sufficient stock twice
-
shouldPartiallyManualDecline_SuccessReSourced
public void shouldPartiallyManualDecline_SuccessReSourced()Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}
Result:
Partially manual Decline should SUCCESS without insufficient stock
-
shouldManualDecline_FailedNoStock
public void shouldManualDecline_FailedNoStock()Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}
Result:
Manual Decline should fail,should at least have 1 stock in new location
-
shouldManualDecline_FailedOverQuantity
public void shouldManualDecline_FailedOverQuantity()Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}
Result:
Manual Decline should fail,should at least have 1 stock in new location
-
shouldManualDecline2Entries_SuccessReSourced
public void shouldManualDecline2Entries_SuccessReSourced()Given an shipping order with 2 entries:
entry 1 : {quantity: 3, product: camera}
entry 2 : {quantity: 3, product: memoryCard}
Result:
Manual Decline should SUCCESS without insufficient stock
-
shouldManualDecline2Entries_FailedReSourced
public void shouldManualDecline2Entries_FailedReSourced()Given an shipping order with 2 entries:
entry 1 : {quantity: 3, product: camera}
entry 2 : {quantity: 3, product: memoryCard}
Result:
Manual Decline should failed
-
shouldManualDecline_ForceOutOfStock
public void shouldManualDecline_ForceOutOfStock()Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}
Result:
Manual Decline should SUCCESS without insufficient stock
-
shouldManualDecline_ForceInStock
public void shouldManualDecline_ForceInStock()Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera}
Result:
Manual Decline should SUCCESS without insufficient stock
-