@IntegrationTest public class CancellationIntegrationTest 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, orderBusinessProcessService, orders, pointsOfService, products, productService, REALLOCATE_CONSIGNMENT_CHOICE, restockConfigs, returnUtil, sourcingBanService, sourcingConfigs, sourcingUtil, stockLevels, stockService, timeOut, users, warehouses, warehouseStockService, workflowActionTemplates, workflowService, workflowTemplates, workflowUtilflexibleSearchService, springCustomContextLoaderimportServicejaloSession| Constructor and Description |
|---|
CancellationIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
void |
setUp() |
void |
shouldCancelEntireOrderSuccess_MultiEntry_SingleConsignment()
Given an order with 2 entries, and cancel all:
entry 1 : {quantity: 3, product: product1} entry 2 : {quantity: 3, product: product2} cancellation:{all} |
void |
shouldCancelEntireOrderSuccess_singleEntry_MultiConsignment()
Given an order with 1 entries sourced from 2 POS, and cancel all:
entry 1 : {quantity: 3, product: Camera} cancellation:{all} |
void |
shouldCancelEntireOrderSuccess_SingleEntry_MultiStockLevel() |
void |
shouldCancelEntireOrderSuccess_SingleEntry()
Given an order with 1 entries, and cancel:
entry 1 : {quantity: 3, product: product1} |
void |
shouldCancelEntirePartiallyCancelledOrder_singleEntry()
Given an order with 1 entries, cancel entire order which already has been partially cancelled
entry 1 : {quantity: 3, product: product1} cancellation : {quantity: 1, product: product1} cancellation : {quantity: 2, product: product1} |
void |
shouldCancelFail_alreadyShipped() |
void |
shouldCancelOrderSuccess_MultiOrderEntry_OMSE_1446() |
void |
shouldCancelOrderSuccess_NothingToSource() |
void |
shouldCancelOrderSuccess_PartiallySourced_OMSE_1440() |
void |
shouldCancelOrderSuccess_PartiallySourcedANdPartiallyConfirmed_OMSE_1454() |
void |
shouldCancelPartiallyOrderAndResourceSuccess_SingleEntry()
Given an order with 1 entries, and cancel partially then create shipment
entry 1 : {quantity: 3, product: product1} cancellation : {quantity: 2, product: product1} |
void |
shouldCancelPartiallyOrderSuccess_SingleEntry_MultiConsignments()
Given an order with 1 entry and 2 consigments, then cancel partially then create shipment
entry 1 : {quantity: 3, product: product1} cancellation : {quantity: 2, product: product1} |
void |
shouldCancelPartiallyOrderSuccess_SingleEntry()
Given an order with 1 entries, and cancel partially then create shipment
entry 1 : {quantity: 3, product: product1} cancellation : {quantity: 2, product: product1} |
void |
shouldCancelUnallocatedQuantityFirst_SingleEntry()
Given an order with 1 entries, partially sourced, and cancel partially then create shipment
entry 1 : {quantity: 3, product: product1} cancellation : {quantity: 2, product: product1} |
void |
shouldCompleteCancelPotentialFraudOrderSuccess_SingleEntry()
Given an order with 1 entry {quantity: 23, product: product1} and status WAIT_FRAUD_MANUAL_CHECK:
Cancel the order completely |
void |
shouldNotCancelMore_SingleEntry()
Given an order with 1 entries, and cancel more:
entry 1 : {quantity: 3, product: product1} cancellation:{quantity:30, product: product1)} |
void |
shouldNotCreateEventWhenCancelPartialOrderFromExternalWarehouse() |
void |
shouldNotCreateEventWhenCancelWholeOrderFromExternalWarehouse() |
void |
shouldPartialCancelPotentialFraudOrderSuccess_SingleEntry()
Given an order with 1 entry {quantity: 23, product: product1} and status WAIT_FRAUD_MANUAL_CHECK:
Partial Cancel : {quantity: 3, product: product1} |
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 shouldCancelEntireOrderSuccess_SingleEntry()
throws java.lang.InterruptedException,
OrderCancelException
Result:
consignment should be cancelled
Assert:
It verifies the cancellation result
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCancelEntireOrderSuccess_SingleEntry_MultiStockLevel()
throws java.lang.InterruptedException,
OrderCancelException
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldNotCancelMore_SingleEntry()
throws java.lang.InterruptedException,
OrderCancelException
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCancelEntireOrderSuccess_MultiEntry_SingleConsignment()
throws java.lang.InterruptedException,
OrderCancelException
Result:
consignment should be cancelled
Assert:
It verifies the cancellation result
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCancelEntireOrderSuccess_singleEntry_MultiConsignment()
throws java.lang.InterruptedException,
OrderCancelException
Result:
consignment should be cancelled
Assert:
It verifies the cancellation result
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCancelPartiallyOrderSuccess_SingleEntry()
throws java.lang.InterruptedException,
OrderCancelException
Result:
1 shipment should be created with quantity 1
Assert:
It verifies the shipment result
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCancelPartiallyOrderSuccess_SingleEntry_MultiConsignments()
throws java.lang.InterruptedException,
OrderCancelException
Result:
generate a new optimized consignment
Assert:
It verifies the shipment result
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCancelPartiallyOrderAndResourceSuccess_SingleEntry()
throws java.lang.InterruptedException,
OrderCancelException
Result:
1 shipment should be created with quantity 1
Assert:
It verifies a new consignment create from better location
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCancelUnallocatedQuantityFirst_SingleEntry()
throws java.lang.InterruptedException,
OrderCancelException
Result:
1 shipment should be created with quantity 1
Assert:
It cancel unallocated quantity without modify consignment
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCancelFail_alreadyShipped()
throws java.lang.InterruptedException,
OrderCancelException
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCancelEntirePartiallyCancelledOrder_singleEntry()
throws java.lang.InterruptedException,
OrderCancelException
Result:
order should be cancel complete
Assert:
order status in cancel
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCancelOrderSuccess_MultiOrderEntry_OMSE_1446()
throws java.lang.InterruptedException,
OrderCancelException
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCancelOrderSuccess_PartiallySourced_OMSE_1440()
throws java.lang.InterruptedException,
OrderCancelException
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCancelOrderSuccess_NothingToSource()
throws java.lang.InterruptedException,
OrderCancelException
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCancelOrderSuccess_PartiallySourcedANdPartiallyConfirmed_OMSE_1454()
throws java.lang.InterruptedException,
OrderCancelException
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldPartialCancelPotentialFraudOrderSuccess_SingleEntry()
throws java.lang.InterruptedException,
OrderCancelException
Result:
Order status should still be WAIT_FRAUD_MANUAL_CHECK, while the order entry's quantity get reduced by 3
Assert:
It verifies the cancellation result
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCompleteCancelPotentialFraudOrderSuccess_SingleEntry()
throws java.lang.InterruptedException,
OrderCancelException
Result:
Order status should be Cancelled, while the order process moves to end state
Assert:
It verifies the cancellation result
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldNotCreateEventWhenCancelWholeOrderFromExternalWarehouse()
throws java.lang.InterruptedException,
OrderCancelException
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldNotCreateEventWhenCancelPartialOrderFromExternalWarehouse()
throws java.lang.InterruptedException,
OrderCancelException
java.lang.InterruptedExceptionOrderCancelExceptionCopyright © 2018 SAP SE. All Rights Reserved.