public class OrderCancelPartialTest 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_SHIPPINGdefaultLanguage, jaloSession| Constructor and Description |
|---|
OrderCancelPartialTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
customSetUp() |
void |
testAllCancelableOrderEntriesNoConsignments()
This verifies that method
OrderCancelService.getAllCancelableEntries(OrderModel, PrincipalModel) returns
information that every entry can be completely canceled when order has no consignments |
void |
testAllCancelableOrderEntriesWithConsignments()
This verifies that method
OrderCancelService.getAllCancelableEntries(OrderModel, PrincipalModel) returns
information that every entry can be completely canceled when order is splitted into consignments and every
consignment has a status READY and no item has been shipped |
void |
testPartialCancelationBeforeWarehouse()
Given an Order that contains a set of order entries containing items (products) and Partial Order Cancellation is
possible and the Order hasn't been sent to the warehouse yet (Order queue waiting time has not expired) then after
Order Cancel Partial Request:
Order Cancel Entry should be created and set to "complete" state Canceled order entries should be removed.
|
void |
testPartialEntryCancelationBeforeWarehouse()
Given an Order that contains a set of order entries containing items (products) and Partial Order Entry
Cancellation is possible and the Order hasn't been sent to the warehouse yet (Order queue waiting time has not
expired) then after Order Cancel Partial Request:
Order Cancel Entry should be created and set to "complete" state Quantity of order entries subject to cancelling
should be reduced.
|
void |
testSomeCancelableOrderEntriesWithConsignments()
This verifies that method
OrderCancelService.getAllCancelableEntries(OrderModel, PrincipalModel) returns
information that:
order entries that belongs to consignments with status SHIPPED cannot be cancelled
order entries that belongs to consignments with status READY and no items are shipped can be cancelled
completely
order entries that belongs to consignments with status READY and some items are shipped can be cancelled only
partially |
void |
testWarehouseResponsePartialCancelDenied()
Given an Order that contains a set of order entries containing items (products) and Order Cancel Entry with
"pending" state then after Cancel Denied Warehouse response
Order Cancel Entry should be updated with "completed" status and reason code.
|
void |
testWarehouseResponsePartialCancelOK()
Given an Order that contains a set of order entries containing items (products) and Order Cancel Entry with
"pending" state then after Cancel Successful Warehouse response
Order Cancel Entry should be updated with "completed" status.
|
void |
testWarehouseResponsePartialCancelPartialOK()
Given an Order that contains a set of order entries containing items (products) and Order Cancel Entry with
"pending" state then after Cancel Partially Successful Warehouse response
Order Cancel Entry should be updated with "completed" status and reason code, and list of product entries that
were cancelled.
|
void |
testWarehouseResponsePartialEntryCancelDenied()
Given an Order that contains a set of order entries containing items (products) and Order Cancel Entry with
"pending" state then after Cancel Denied Warehouse response
Order Cancel Entry should be updated with "completed" status and reason code.
|
void |
testWarehouseResponsePartialEntryCancelOK()
Given an Order that contains a set of order entries containing items (products) and Order Cancel Entry with
"pending" state then after Cancel Successful Warehouse response
Order Cancel Entry should be updated with "completed" status.
|
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, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic void customSetUp()
throws InvalidCartException
InvalidCartExceptionpublic void testPartialCancelationBeforeWarehouse()
throws Exception
Exceptionpublic void testPartialEntryCancelationBeforeWarehouse()
throws Exception
Exceptionpublic void testWarehouseResponsePartialCancelOK()
throws Exception
Exceptionpublic void testWarehouseResponsePartialEntryCancelOK()
throws Exception
Exceptionpublic void testWarehouseResponsePartialCancelDenied()
throws Exception
Exceptionpublic void testWarehouseResponsePartialEntryCancelDenied()
throws Exception
Exceptionpublic void testWarehouseResponsePartialCancelPartialOK()
throws Exception
Exceptionpublic void testAllCancelableOrderEntriesNoConsignments()
OrderCancelService.getAllCancelableEntries(OrderModel, PrincipalModel) returns
information that every entry can be completely canceled when order has no consignmentspublic void testAllCancelableOrderEntriesWithConsignments()
OrderCancelService.getAllCancelableEntries(OrderModel, PrincipalModel) returns
information that every entry can be completely canceled when order is splitted into consignments and every
consignment has a status READY and no item has been shippedpublic void testSomeCancelableOrderEntriesWithConsignments()
OrderCancelService.getAllCancelableEntries(OrderModel, PrincipalModel) returns
information that:
Copyright © 2017 SAP SE. All Rights Reserved.