Class ProductBOGOFPromotionTest

    • Constructor Detail

      • ProductBOGOFPromotionTest

        public ProductBOGOFPromotionTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Overrides:
        setUp in class AbstractPromotionTest
        Throws:
        java.lang.Exception
      • testProductBOGOFPromotion

        public void testProductBOGOFPromotion()
                                       throws CalculationException
        HW1210-3411: 253 Euro, HW1100-0023: 523.99 Euro, HW2310-1001: 29.90 Euro, and HW2320-1009: 99.80 Euro. Adds all these products to cart, and check the price of the cart before and after the updatePromoitions(). Since the ProductBOGOFPromotion is enabled, the HW2310-1001(29.90 Euro) with the lowest price is sold for free.
        Throws:
        CalculationException