Class AtpFormulaIntegrationTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest @DirtiesContext(classMode=BEFORE_CLASS) public class AtpFormulaIntegrationTest extends BaseAcceleratorSourcingIntegrationTest
  • Field Details

  • Constructor Details

    • AtpFormulaIntegrationTest

      public AtpFormulaIntegrationTest()
  • Method Details

    • setUp

      public void setUp() throws InterruptedException, OrderCancelException
      Throws:
      InterruptedException
      OrderCancelException
    • cleanUp

      public void cleanUp()
    • getDefault_Atp

      public void getDefault_Atp()
    • getAtp_Null_Formula

      public void getAtp_Null_Formula()
    • getAtp_Empty_Formula

      public void getAtp_Empty_Formula()
      Availability is not present in the formula
    • getAtp_Available_Only

      public void getAtp_Available_Only()
    • getAtp_Available_Allocated

      public void getAtp_Available_Allocated()
    • getAtp_Available_Allocated_Cancelled

      public void getAtp_Available_Allocated_Cancelled()
    • getAtp_Available_Allocated_Cancelled_Shrinked

      public void getAtp_Available_Allocated_Cancelled_Shrinked()
    • getAtp_Available_Allocated_Cancelled_Shrinked_Wasted

      public void getAtp_Available_Allocated_Cancelled_Shrinked_Wasted()
    • getAtp_Available_Allocated_Cancelled_Shrinked_Wasted_Increase

      public void getAtp_Available_Allocated_Cancelled_Shrinked_Wasted_Increase()
    • getAtp_Shrinked_Wasted

      public void getAtp_Shrinked_Wasted()
    • getAtp_WithReturnedBinCode_WithoutReturned

      public void getAtp_WithReturnedBinCode_WithoutReturned()
    • getAtp_WithReturned

      public void getAtp_WithReturned()
    • getAtp_WithExternal

      public void getAtp_WithExternal()
    • checkGlobalAndLocalAtp

      protected void checkGlobalAndLocalAtp(Long expectedLocal)
    • updateFormula

      protected void updateFormula(AtpFormulaModel atpFormulaModel)
    • getAllocatedQuantity

      protected Long getAllocatedQuantity()
      Because of the cancellation, the entire order is first allocated and sourced again for its original quantity minus the quantity cancelled.
      Returns:
      the allocated quantity
    • getCancelQuantity

      protected Long getCancelQuantity()
      When cancelled, even partially, an order is cancelled integrally and if there is some quantity left, it is source again.
      Returns:
      the cancelled quantity