Class ProductOneToOnePerfectPartnerPromotionTest

    • Constructor Detail

      • ProductOneToOnePerfectPartnerPromotionTest

        public ProductOneToOnePerfectPartnerPromotionTest()
    • Method Detail

      • setUp

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

        public void testProductOneToOnePerfectPartnerPromotion()
                                                        throws CalculationException
        HW2110-0019(base product): 381.64 Euro, and HW2200-0561(partner product): 86.80 Euro. The ProductOneToOnePerfectPartnerPromotion will be fired if both of them are in the cart and the price is 700 Euro.
        • adds the HW2110-0019 in cart, and tests the total price,
        • updates with the ProductOneToOnePerfectPartnerPromotion, and checks the total price,
        • now adds the HW2200-0561, and checks the total price,
        • updates with the ProductOneToOnePerfectPartnerPromotion that should be fired now, and checks the total price.
        Throws:
        CalculationException