Class ProductPromotionsTest

All Implemented Interfaces:
JaloSessionHolder

public class ProductPromotionsTest extends AbstractPromotionServiceTest
Test for PromotionsManager.getProductPromotions()
  • Constructor Details

    • ProductPromotionsTest

      public ProductPromotionsTest()
  • Method Details

    • setUp

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

      public void testGetProductPromotions()
      Tests the promotionsService.getProductPromotions(...)
      • for product "HW1210-3411", tests the size of it and each promotion code:
      • only one promotion in group1,
      • two promotions in group1 and group2,
      • four promotions in group1, group2, and group4.
      and in the end, test the product which doesn't belong to any categories.