Class ProductOneToOnePerfectPartnerPromotionTest

All Implemented Interfaces:
JaloSessionHolder

public class ProductOneToOnePerfectPartnerPromotionTest extends AbstractPromotionTest
Test for ProductOneToOnePerfectPartnerPromotion.
  • Constructor Details

    • ProductOneToOnePerfectPartnerPromotionTest

      public ProductOneToOnePerfectPartnerPromotionTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Overrides:
      setUp in class AbstractPromotionTest
      Throws:
      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