Class ReturnIntegrationTest
- 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.ReturnIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class ReturnIntegrationTest extends BaseAcceleratorSourcingIntegrationTest
This integration test creates an order process model and kick-start it with underlying consignment process from beginning to the end. Afterwards it create a return process and verifies if the process has progressed successfully. Please make sure that you have run initialize and update junit tenant before running this test.
-
-
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 ReturnIntegrationTest()
-
Method Summary
-
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()
-
shouldReturnSuccessButNotRestock_SingleEntry_ReturnInStore_Boston
public void shouldReturnSuccessButNotRestock_SingleEntry_ReturnInStore_Boston() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldReturnSuccess_SingleEntry_ReturnInStore_RestockConfigNull
public void shouldReturnSuccess_SingleEntry_ReturnInStore_RestockConfigNull() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldReturnSuccess_SingleEntry_ReturnInStore_RestockSkip
public void shouldReturnSuccess_SingleEntry_ReturnInStore_RestockSkip() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldReturnSuccessButNotRestock_SingleEntry_ReturnInStore_Montreal
public void shouldReturnSuccessButNotRestock_SingleEntry_ReturnInStore_Montreal() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldReturnSuccessButNotRestock_SingleEntry_ReturnOnline_SendReturnLabelAndFormEmail
public void shouldReturnSuccessButNotRestock_SingleEntry_ReturnOnline_SendReturnLabelAndFormEmail() throws RetryLaterException, java.lang.InterruptedException, ImpExException
- Throws:
RetryLaterException
java.lang.InterruptedException
ImpExException
-
shouldReturnSuccess_SingleEntry_PickUpOrder
public void shouldReturnSuccess_SingleEntry_PickUpOrder() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldReturnSuccess_SingleEntry_CreateTwoReturns
public void shouldReturnSuccess_SingleEntry_CreateTwoReturns() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldReturnFail_SingleEntry_SecondAttemptExpectedQuantityTooHigh_InStore
public void shouldReturnFail_SingleEntry_SecondAttemptExpectedQuantityTooHigh_InStore() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldReturnFail_SingleEntry_SecondAttemptExpectedQuantityTooHigh_OnLine_PendingReturnExists
public void shouldReturnFail_SingleEntry_SecondAttemptExpectedQuantityTooHigh_OnLine_PendingReturnExists() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldCancelReturnSuccess_AfterApproval_ReCreateReturnSuccess
public void shouldCancelReturnSuccess_AfterApproval_ReCreateReturnSuccess() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldCancelReturnSuccess_AfterCreation
public void shouldCancelReturnSuccess_AfterCreation() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldCancelReturnSuccess_AfterReturnCreation
public void shouldCancelReturnSuccess_AfterReturnCreation() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldReturnFail_SingleEntry_ExpectedQuantityTooHigh
public void shouldReturnFail_SingleEntry_ExpectedQuantityTooHigh() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldReturnFail_OrderNotShipped
public void shouldReturnFail_OrderNotShipped() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldReturnSuccess_SingleEntry_OrderPartiallyShipped_ExpectedQuantityOverShipped
public void shouldReturnSuccess_SingleEntry_OrderPartiallyShipped_ExpectedQuantityOverShipped() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldReturnSuccess_SingleEntry_OrderPartiallyShipped
public void shouldReturnSuccess_SingleEntry_OrderPartiallyShipped() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldReturnSuccess_MultiEntry_ReturnOnline_Restock
public void shouldReturnSuccess_MultiEntry_ReturnOnline_Restock() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldReturnSuccessButNotRestock_MultiEntry_MultiPartiallyReturns
public void shouldReturnSuccessButNotRestock_MultiEntry_MultiPartiallyReturns() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
shouldReturnSuccessful_RestockFromExternalWarehouse_SecondAttemptExpectedQuantityTooHigh_Shipping
public void shouldReturnSuccessful_RestockFromExternalWarehouse_SecondAttemptExpectedQuantityTooHigh_Shipping() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
shouldReturnSuccessful_RestockFromExternalWarehouse_CancelAndSecondAttemptExpectedQuantity_Shipping
public void shouldReturnSuccessful_RestockFromExternalWarehouse_CancelAndSecondAttemptExpectedQuantity_Shipping() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
shouldReturnSuccess_ReturnOnline_Restock_ExternalWarehouse
public void shouldReturnSuccess_ReturnOnline_Restock_ExternalWarehouse() throws RetryLaterException, java.lang.InterruptedException
- Throws:
RetryLaterException
java.lang.InterruptedException
-
-