Class 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.
    • Constructor Detail

      • ReturnIntegrationTest

        public ReturnIntegrationTest()
    • 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