public class OrderCancelCompleteTest extends AbstractOrderCancelTest
AbstractOrderCancelTest.AbstractMockOrderCancelStateManagementStrategy, AbstractOrderCancelTest.OrderCancelDaoMock, AbstractOrderCancelTest.RequestOriginStrategyHelperREQUEST_ORIGIN_STRATEGY_CSA, REQUEST_ORIGIN_STRATEGY_CUSTOMER, STATE_STRATEGY_HOLDING_AREA_QUEUE_WAITING, STATE_STRATEGY_IMPOSSIBLE, STATE_STRATEGY_PARTIALLY_SHIPPED, STATE_STRATEGY_SENT_TO_WAREHOUSE, STATE_STRATEGY_SHIPPINGimportServicejaloSession| Constructor and Description |
|---|
OrderCancelCompleteTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
customSetUp() |
void |
testCompleteCancelInHoldingArea() |
void |
testCompleteCancelWarehouseNotShipping() |
void |
testExceptionOnCompleteCancelImpossible()
Exception should be throws when issuing a complete cancel request when cancel is not possible.
|
void |
testExceptionOnPartialCancelImpossible()
Exception should be throws when issuing a partial cancel request when cancel is not possible.
|
void |
testSecondCancelRequest()
Tests consecutive cancel requests when the first one didnt finish
|
void |
testWarehouseResponseCancelDenied() |
void |
testWarehouseResponsePartialCancelOK()
This test case tests scenario when FULL order cancel was requested, however warehouse performed PARTIAL cancel -
due to some internal issues (partial shipment already done?)
|
createCancelRecord, createCancelRecordEntry, createSnaphot, getConfig, getConfiguration, getCurrentPrincipal, getModelService, getOrCreateOrderCancelConfig, getOrder, getOrderCancelService, getProduct3, injectAdaptersDependencies, injectStateMappingStrategy, placeTestOrder, setConfig, setConfiguration, setCurrentPrincipal, setModelService, setOrder, setOrderCancelService, setProduct3, setUp, tearDowncreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void customSetUp()
throws InvalidCartException,
CalculationException
public void testExceptionOnCompleteCancelImpossible()
throws OrderCancelException
OrderCancelExceptionpublic void testExceptionOnPartialCancelImpossible()
throws OrderCancelException
OrderCancelExceptionpublic void testCompleteCancelInHoldingArea()
throws OrderCancelException
OrderCancelExceptionpublic void testCompleteCancelWarehouseNotShipping()
throws OrderCancelException
OrderCancelExceptionpublic void testWarehouseResponseCancelDenied()
throws java.lang.Exception
java.lang.Exceptionpublic void testWarehouseResponsePartialCancelOK()
throws java.lang.Exception
java.lang.Exceptionpublic void testSecondCancelRequest()
throws OrderCancelException
OrderCancelExceptionCopyright © 2018 SAP SE. All Rights Reserved.