Class PromotionOrderEntryAdjustActionTest

All Implemented Interfaces:
JaloSessionHolder

public class PromotionOrderEntryAdjustActionTest extends AbstractPromotionServiceTest
  • Constructor Details

    • PromotionOrderEntryAdjustActionTest

      public PromotionOrderEntryAdjustActionTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Overrides:
      setUp in class AbstractPromotionServiceTest
      Throws:
      Exception
    • testPromotionOrderEntryAdjustAction

      public void testPromotionOrderEntryAdjustAction() throws CalculationException
      Tests PromotionOrderEntryAdjustAction with the same product in different cart entries.
      • adds one product1 in entry0, and one product2 in entry1,
      • adds another product1 in entry2, and product2 in entry3,
      • product1 has fixed price promotion(10 Euro), and product2 has percent promotion(10%).
      • tests each entry should have the discount, instead of the whole discount in the first entry.
      Throws:
      CalculationException