Class ProductThresholdPriceDiscountPromotionTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class ProductThresholdPriceDiscountPromotionTest extends AbstractPromotionTest
  • Constructor Details

    • ProductThresholdPriceDiscountPromotionTest

      public ProductThresholdPriceDiscountPromotionTest()
  • Method Details

    • setup

      public void setup() throws Exception
      HW1210-3411: 253 Euro, HW2310-1001: 29.90 Euro
      Throws:
      Exception
    • shouldApplyPromotion

      public void shouldApplyPromotion() throws CalculationException
      Entry total 253.0d is greater than threshold 100. Promotion should be applied
      Throws:
      CalculationException
    • shouldNotApplyPromotion

      public void shouldNotApplyPromotion() throws CalculationException
      Entry total 29.90d is less than threshold 100. Promotion should be not be applied
      Throws:
      CalculationException