Class AtpFormulaIntegrationTest

    • Constructor Detail

      • AtpFormulaIntegrationTest

        public AtpFormulaIntegrationTest()
    • Method Detail

      • 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​(java.lang.Long expectedLocal)
      • updateFormula

        protected void updateFormula​(AtpFormulaModel atpFormulaModel)
      • getAllocatedQuantity

        protected java.lang.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 java.lang.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