@IntegrationTest public class OrderOnHoldIntegrationTest 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 |
|---|
OrderOnHoldIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
void |
setUp() |
void |
shouldCancelOnHoldOrder()
Given an on hold order with 1 entries and cancel this order
entry 1 : {quantity: 3, product: product1} Consignment 1 : {quantity: 3, product: product1, Cancelled} |
void |
shouldPutOrderOnHold()
Given an order with 1 entries and put this order on hold:
entry 1 : {quantity: 3, product: product1} Consignment 1 : {quantity: 3, product: product1, Ready} |
void |
shouldPutPartiallyCancelledOrderOnHoldAndCancelPartiallyAgain()
Given a partially cancelled order with 1 entries and put this order on hold:
entry 1 : {quantity: 3, product: product1} Consignment 1 : {quantity: 3, product: product1, Cancelled} Consignment 2 : {quantity: 2, product: product1, Ready} |
void |
shouldPutPartiallyDeclinedOrderOnHold()
Given a partially declined order with 1 entries and put this order on hold:
entry 1 : {quantity: 3, product: product1} Consignment 1 : {quantity: 2, quantityDeclined: 1, product: product1, Ready} Consignment 2 : {quantity: 1, product: product1, Ready} |
void |
shouldReSourceOnHoldOrder()
Given an on hold order with 1 entries and re-source this order
entry 1 : {quantity: 3, product: product1} Consignment 1 : {quantity: 3, product: product1, Cancelled} |
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 shouldPutOrderOnHold()
throws java.lang.InterruptedException,
OrderCancelException
Result:
1. Consignment 1 should be cancelled
Assert:
It verifies the cancelled consignment
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldPutPartiallyDeclinedOrderOnHold()
throws java.lang.InterruptedException,
OrderCancelException
Result:
1. Consignment 1 should be cancelled
2. Consignment 2 should be cancelled
Assert:
It verifies the cancelled consignments
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldPutPartiallyCancelledOrderOnHoldAndCancelPartiallyAgain()
throws java.lang.InterruptedException,
OrderCancelException
Result:
1. Consignment 1 should be cancelled
2. Consignment 2 should be cancelled
Assert:
It verifies the cancelled consignments
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldReSourceOnHoldOrder()
throws java.lang.InterruptedException,
OrderCancelException
Result:
1. Consignment 1 should be cancelled
2. Consignment 2 should be Ready
Assert:
It verifies the consignments
java.lang.InterruptedExceptionOrderCancelExceptionpublic void shouldCancelOnHoldOrder()
throws java.lang.InterruptedException,
OrderCancelException
Result:
1. Consignment 1 should be cancelled
2. Order should be cancelled
Assert:
It verifies the cancelled order and consignment
java.lang.InterruptedExceptionOrderCancelExceptionCopyright © 2018 SAP SE. All Rights Reserved.