Class DefaultRuleEngineCalculationServiceCalculationMethodsTest


  • @UnitTest
    public class DefaultRuleEngineCalculationServiceCalculationMethodsTest
    extends java.lang.Object
    • Constructor Detail

      • DefaultRuleEngineCalculationServiceCalculationMethodsTest

        public DefaultRuleEngineCalculationServiceCalculationMethodsTest()
    • Method Detail

      • testCalculateTotals

        public void testCalculateTotals()
        Test that the calculate totals method uses the converter to create the order, and calls the recalculateTotals method
        Throws:
        java.lang.Exception
      • testRecalculateTotalsWithNoCartLineItems

        public void testRecalculateTotalsWithNoCartLineItems()
      • testRecalculateTotals

        public void testRecalculateTotals()
      • testRecalculateTotalsWithIllegalCartLineItem

        public void testRecalculateTotalsWithIllegalCartLineItem()
      • testCalculateSubTotalsWhenExcludedProductsIsEmpty

        public void testCalculateSubTotalsWhenExcludedProductsIsEmpty()
      • testCalculateSubTotalsValidationWhenCartIsNull

        public void testCalculateSubTotalsValidationWhenCartIsNull()
      • testCalculateSubTotalsWithNonMatchingExcludedProductsEntryProductIsNull

        public void testCalculateSubTotalsWithNonMatchingExcludedProductsEntryProductIsNull()
      • testCalculateSubTotalsWithNonMatchingExcludedProducts

        public void testCalculateSubTotalsWithNonMatchingExcludedProducts()
        Test the method DefaultRuleEngineCalculationService#calculateSubTotals. Note that this method will not test recalculate totals: it will only verify that the calculateSubTotals method does invoke recalculate totals!
        Throws:
        java.lang.Exception
      • testCalculateSubTotalsWithMatchingExcludedProducts

        public void testCalculateSubTotalsWithMatchingExcludedProducts()