@IntegrationTest public class DeclineIntegrationTest extends BaseAcceleratorSourcingIntegrationTest
atpFormulas, automatedWorkflowActionTemplates, baseStores, CAMERA_CODE, CAMERA_QTY, cancellationUtil, CODE_BOSTON, CODE_MEMORY_CARD, CODE_MONTREAL, CODE_MONTREAL_EXTERNAL, CODE_PARIS, CODE_TORONTO, commentTypes, commerceStockService, components, CONSIGNMENT_ACTION_EVENT_NAME, csAgentGroups, DECLINE_ENTRIES, declineUtil, deliveryMode, domains, emailAddresses, LEFTOVER_QTY, LENS_CODE, LENS_QTY, MEMORY_CARD_CODE, MEMORY_CARD_QTY, modelService, order, ORDER_ACTION_EVENT_NAME, orderBusinessProcessService, orders, pointsOfService, products, productService, RE_SOURCE_CHOICE, REALLOCATE_CONSIGNMENT_CHOICE, restockConfigs, returnUtil, sourcingBanService, sourcingConfigs, sourcingUtil, stockLevels, stockService, timeOut, users, warehouses, warehouseStockService, workflowActionTemplates, workflowService, workflowTemplates, workflowUtilflexibleSearchService, springCustomContextLoaderimportServicejaloSession| Constructor and Description |
|---|
DeclineIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
void |
setUp() |
void |
shouldAutoDecline_PartiallyDeclineTwice()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: partially decline same consignment twice |
void |
shouldAutoDecline_SuccessReSourcedTwice()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Decline should SUCCESS without sufficient stock twice |
void |
shouldAutoDecline1Entry_MultiEntries_FailReSourced()
Given an shipping order with 2 entries:
entry 1 : {quantity: 3, product: camera} entry 2 : {quantity: 2, product: memoryCard} Result: Decline should Fail |
void |
shouldAutoDecline1Entry_MultiEntries_SuccessReSourced()
Given an shipping order with 2 entries:
entry 1 : {quantity: 3, product: camera} entry 2 : {quantity: 2, product: memoryCard} Result: Decline should SUCCESS, and confirm order |
void |
shouldAutoDecline2Entries_PartiallySuccessReSourced()
Given an shipping order with 2 entries:
entry 1 : {quantity: 3, product: camera} entry 2 : {quantity: 2, product: memoryCard} Result: Decline should SUCCESS |
void |
shouldAutoReallocate_MixManualAuto_ReSourcingFailed()
Given an shipping order with 3 entries:
DeclineEntry 1 : auto DeclineEntry 2 : manual Result: Decline should SUCCESS |
void |
shouldAutoReallocate_SingleEntry_FailReSourced__Damaged_ResetInventory() |
void |
shouldAutoReallocate_SingleEntry_FailReSourced__OutOfStock_ResetInventory()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Decline should SUCCESS with new location when to out of stock and reset inventory |
void |
shouldAutoReallocate_SingleEntry_PartiallyFailReSourced()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Decline should fail, and confirm the consignment |
void |
shouldAutoReallocate_SingleEntry_PartiallyReSourcingSuccess()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Decline should SUCCESS with new location when partially reallocated |
void |
shouldAutoReallocate_SingleEntry_SuccessReSourced__ToBusy_BanLocation()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Decline should SUCCESS with new location when to busy and ban first location |
void |
shouldAutoReallocateAndReassignNewTaskAssignmentWorkFlowAfterPacking()
Given an shipping order with 1 entry:
entry 1 : {quantity: 3, product: camera} Perform a pack and perform complete auto-Reallocation on this consignment Result: 1) A new Consignment is created, while the old consignment is cancelled 2) Task Assignment workflow for the older consingment is terminated and a new workflow is assigned to the new consignment |
void |
shouldAutoReallocatePartiallyAndReassignNewTaskAssignmentWorkFlowAfterPacking()
Given an shipping order with 1 entry:
entry 1 : {quantity: 3, product: camera} Perform a pack and then perform partial auto-Reallocation on this consignment Result: 1) A new Consignment is created, while the old consignment status is moved back to ConsignmentStatus.READY from ConsignmentStatus.READY_FOR_SHIPPING2) Task Assignment workflow for the older consingment is terminated and a new workflow is assigned to it. 2) Also a new Task Assignment workflow is assigned to the new consignment. |
void |
shouldExcludeBanWarehouseDuringATPCalculation()
Given a shipping order from USA with entry {quantity: 3, product: camera}
StockLevels : Montreal Warehouse: {quantity: 6, product: camera} The order gets sourced from Montreal Warehouse and now the consignment is declined with reason TOOBUSY Result: The Montreal warehouse is banned and the ATP value become to 0 |
void |
shouldManualReallocate_DamagedEntry_BanExternalWarehouse()
Given an shipping order from USA with entry {quantity: 3, product: camera}
StockLevels : Montreal Warehouse(External) : {quantity: 6, product: camera} Boston Warehouse(Internal) : {quantity: 3, product: camera} The order gets sourced from Montreal Warehouse and now the consignment is declined with reason DAMAGED Result: The order gets resourced from Boston and the Montreal warehouse is banned for 1 day |
void |
shouldManualReallocate_SingleEntry()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Decline should SUCCESS with new location when to busy and ban first location |
void |
shouldManualReallocateAndReassignNewTaskAssignmentWorkFlowAfterPacking()
Given an shipping order with 1 entry:
entry 1 : {quantity: 3, product: camera} Perform a pack and then perform complete manual-Reallocation on this consignment Result: 1) A new Consignment is created, while the old consignment is cancelled 2) Task Assignment workflow for the older consingment is terminated and a new workflow is assigned to the new consignment |
void |
shouldManualReallocatePartiallyAndReassignNewTaskAssignmentWorkFlowAfterPacking()
Given an shipping order with 1 entry:
entry 1 : {quantity: 3, product: camera} Perform a pack and then perform partial manual-Reallocation on this consignment Result: 1) A new Consignment is created, while the old consignment status is moved back to ConsignmentStatus.READY from ConsignmentStatus.READY_FOR_SHIPPING2) Task Assignment workflow for the older consingment is terminated and a new workflow is assigned to it. 2) Also a new Task Assignment workflow is assigned to the new consignment. |
void |
shouldSuccessfullyAutoReallocateTwice()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} The consignment is auto reallocated automatically with partial quantity 2 Then consignment is auto reallocated again with left over quantity 1 Result: Decline should SUCCESS for both auto reallocation actions |
buildAsnWorkflow, buildConsignmentWorkflow, cleanUpData, cleanUpModel, refreshConsignmentAndEntries, resetFactors, saveAll, setupcreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void cleanUp()
public void shouldAutoReallocate_SingleEntry_SuccessReSourced__ToBusy_BanLocation()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldManualReallocate_SingleEntry()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldManualReallocateAndReassignNewTaskAssignmentWorkFlowAfterPacking()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldManualReallocatePartiallyAndReassignNewTaskAssignmentWorkFlowAfterPacking()
throws java.lang.InterruptedException
ConsignmentStatus.READY from ConsignmentStatus.READY_FOR_SHIPPINGjava.lang.InterruptedExceptionpublic void shouldAutoReallocateAndReassignNewTaskAssignmentWorkFlowAfterPacking()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldAutoReallocatePartiallyAndReassignNewTaskAssignmentWorkFlowAfterPacking()
throws java.lang.InterruptedException
ConsignmentStatus.READY from ConsignmentStatus.READY_FOR_SHIPPINGjava.lang.InterruptedExceptionpublic void shouldAutoReallocate_SingleEntry_PartiallyFailReSourced()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldAutoReallocate_SingleEntry_FailReSourced__OutOfStock_ResetInventory()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldAutoReallocate_SingleEntry_PartiallyReSourcingSuccess()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldAutoReallocate_MixManualAuto_ReSourcingFailed()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldAutoDecline_SuccessReSourcedTwice()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldAutoDecline_PartiallyDeclineTwice()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldAutoDecline2Entries_PartiallySuccessReSourced()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldAutoDecline1Entry_MultiEntries_SuccessReSourced()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldAutoDecline1Entry_MultiEntries_FailReSourced()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldAutoReallocate_SingleEntry_FailReSourced__Damaged_ResetInventory()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldManualReallocate_DamagedEntry_BanExternalWarehouse()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldExcludeBanWarehouseDuringATPCalculation()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldSuccessfullyAutoReallocateTwice()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionCopyright © 2018 SAP SE. All Rights Reserved.