@IntegrationTest public class OrderSourcingIntegrationTest 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 |
|---|
OrderSourcingIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
void |
setUp() |
void |
shouldFailSourcing_ExternalWarehouse() |
void |
shouldNotConfirmTwice()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Verify cannot confirm order twice |
void |
shouldNotSourceSourcingConfigNull()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: The BaseStoreModel for the Order does not have SourcingConfigModel. |
void |
shouldPickLocationWithLowerScore()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Second location should be picked, even if the first one has higher score. That's because of fitness strategy - second warehouse is able to make whole order at one time. |
void |
shouldSourcingFail_SingleEntry()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Verify the order sourcing failed |
void |
shouldSourcingSuccess_DistanceBoston()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Verify the location where it is assigned |
void |
shouldSourcingSuccess_DistanceMontreal()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Verify the location where it is assigned |
void |
shouldSourcingSuccess_ExternalWarehouse() |
void |
shouldSourcingSuccess_MultiEntries_MultiConsignments_SplitOrderEntries()
Given an shipping order with 2 entries:
entry 1 : {quantity: 3, product: camera} entry 2 : {quantity: 2, product: memoryCard} Result: Verify the order status and consignment result |
void |
shouldSourcingSuccess_MultiEntries_MultiConsignments()
Given an shipping order with 2 entries:
entry 1 : {quantity: 3, product: camera} entry 2 : {quantity: 2, product: memoryCard} Result: Verify the order status and consignment result |
void |
shouldSourcingSuccess_MultiEntry_SingleConsignment()
Given an shipping order with 2 entries:
entry 1 : {quantity: 3, product: camera} entry 2 : {quantity: 2, product: memoryCard} Result: Verify the order status and consignment result |
void |
shouldSourcingSuccess_OMSE_640()
Given an order with 3 entries:
entry 1 : {quantity: 1, product: product1} entry 2 : {quantity: 1, product: product2} entry 3 : {quantity: 7, product: product3} POS Montreal ->Montreal product1 quantity=6, product2 quantity =6, product3 quantity = 6 POS Boston ->Boston product1 quantity=6, product2 quantity =6, product3 quantity = 0 POS Toronto ->Toronto product1 quantity=0, product2 quantity =0, product3 quantity = 6 Result: It should source complete from 2 location, 6 of product3 from Montreal, and 1 from the Toronto |
void |
shouldSourcingSuccess_Priority()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Verify the order status and consignment result |
void |
shouldSourcingSuccess_SingleEntry_PickUp()
Given an pickup order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Verify the order status and consignment result |
void |
shouldSourcingSuccess_SingleEntry()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Verify the order status and consignment result |
void |
shouldTakeAllFromFirstLocationAndTheRestFromSecond()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: In this case, both locations cannot send order at one time. |
void |
shouldTakeAllFromLocationWithHigherScore()
Given an shipping order with 1 entries:
entry 1 : {quantity: 3, product: camera} Result: Whole order will be delivered from first location because score is higher. |
void |
updateTaskAssignmentWorkflowWithPackPickUpConsignment()
Given that a consignment is Packed the Task Assignment Workflow must also be updated.
|
void |
updateTaskAssignmentWorkflowWithPackShippingConsignment()
Given that a consignment is Packed the Task Assignment Workflow must also be updated.
|
void |
updateTaskAssignmentWorkflowWithPickupConsignment()
Given that a pickup consignment is Shipped the Task Assignment Workflow must also be updated.
|
void |
updateTaskAssignmentWorkflowWithShipConsignment()
Given that a consignment is Shipped the Task Assignment Workflow must also be updated.
|
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 updateTaskAssignmentWorkflowWithPackShippingConsignment()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void updateTaskAssignmentWorkflowWithPackPickUpConsignment()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void updateTaskAssignmentWorkflowWithShipConsignment()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void updateTaskAssignmentWorkflowWithPickupConsignment()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldSourcingSuccess_SingleEntry()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldNotSourceSourcingConfigNull()
throws java.lang.InterruptedException
BaseStoreModel for the Order does not have SourcingConfigModel. SourcingConfigModel is provided for the BaseStoreModel, and as a result:java.lang.InterruptedExceptionpublic void shouldSourcingSuccess_SingleEntry_PickUp()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldSourcingFail_SingleEntry()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldSourcingSuccess_Priority()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldPickLocationWithLowerScore()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldTakeAllFromFirstLocationAndTheRestFromSecond()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldTakeAllFromLocationWithHigherScore()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldSourcingSuccess_DistanceMontreal()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldSourcingSuccess_DistanceBoston()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldSourcingSuccess_MultiEntry_SingleConsignment()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldSourcingSuccess_MultiEntries_MultiConsignments()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldSourcingSuccess_MultiEntries_MultiConsignments_SplitOrderEntries()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldSourcingSuccess_OMSE_640()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldNotConfirmTwice()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldSourcingSuccess_ExternalWarehouse()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldFailSourcing_ExternalWarehouse()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionCopyright © 2018 SAP SE. All Rights Reserved.