Class ProductBOGOFPromotionTest

All Implemented Interfaces:
JaloSessionHolder

public class ProductBOGOFPromotionTest extends AbstractPromotionTest
Test for ProductBOGOFPromotion.
  • Constructor Details

    • ProductBOGOFPromotionTest

      public ProductBOGOFPromotionTest()
  • Method Details

    • setUp

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