Class OrderOnHoldIntegrationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.yacceleratorordermanagement.integration.BaseAcceleratorIntegrationTest
-
- de.hybris.platform.yacceleratorordermanagement.integration.BaseAcceleratorSourcingIntegrationTest
-
- de.hybris.platform.yacceleratorordermanagement.integration.OrderOnHoldIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class OrderOnHoldIntegrationTest extends BaseAcceleratorSourcingIntegrationTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.yacceleratorordermanagement.integration.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, workflowUtil
-
Fields inherited from class de.hybris.platform.yacceleratorordermanagement.integration.BaseAcceleratorIntegrationTest
flexibleSearchService, springCustomContextLoader
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description OrderOnHoldIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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}-
Methods inherited from class de.hybris.platform.yacceleratorordermanagement.integration.BaseAcceleratorSourcingIntegrationTest
buildAsnWorkflow, buildConsignmentWorkflow, cleanUpData, cleanUpModel, refreshConsignmentAndEntries, resetFactors, saveAll, setup
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
cleanUp
public void cleanUp()
-
shouldPutOrderOnHold
public void shouldPutOrderOnHold() throws java.lang.InterruptedException, OrderCancelException
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}
Result:
1. Consignment 1 should be cancelled
Assert:
It verifies the cancelled consignment- Throws:
java.lang.InterruptedException
OrderCancelException
-
shouldPutPartiallyDeclinedOrderOnHold
public void shouldPutPartiallyDeclinedOrderOnHold() throws java.lang.InterruptedException, OrderCancelException
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}
Result:
1. Consignment 1 should be cancelled
2. Consignment 2 should be cancelled
Assert:
It verifies the cancelled consignments- Throws:
java.lang.InterruptedException
OrderCancelException
-
shouldPutPartiallyCancelledOrderOnHoldAndCancelPartiallyAgain
public void shouldPutPartiallyCancelledOrderOnHoldAndCancelPartiallyAgain() throws java.lang.InterruptedException, OrderCancelException
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}
Result:
1. Consignment 1 should be cancelled
2. Consignment 2 should be cancelled
Assert:
It verifies the cancelled consignments- Throws:
java.lang.InterruptedException
OrderCancelException
-
shouldReSourceOnHoldOrder
public void shouldReSourceOnHoldOrder() throws java.lang.InterruptedException, OrderCancelException
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}
Result:
1. Consignment 1 should be cancelled
2. Consignment 2 should be Ready
Assert:
It verifies the consignments- Throws:
java.lang.InterruptedException
OrderCancelException
-
shouldCancelOnHoldOrder
public void shouldCancelOnHoldOrder() throws java.lang.InterruptedException, OrderCancelException
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}
Result:
1. Consignment 1 should be cancelled
2. Order should be cancelled
Assert:
It verifies the cancelled order and consignment- Throws:
java.lang.InterruptedException
OrderCancelException
-
-