Class DefaultEntryDiscountsPromotionEngineServiceIntegrationTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class DefaultEntryDiscountsPromotionEngineServiceIntegrationTest extends PromotionEngineServiceBaseTestBase
  • Constructor Details

    • DefaultEntryDiscountsPromotionEngineServiceIntegrationTest

      public DefaultEntryDiscountsPromotionEngineServiceIntegrationTest()
  • Method Details

    • setUp

      public void setUp() throws ImpExException, IOException
      Throws:
      ImpExException
      IOException
    • testOrderEntryDiscountsWithPromotionGroups

      public void testOrderEntryDiscountsWithPromotionGroups() throws IOException
      Throws:
      IOException
    • testBasePriceDiscountsRowWithNoPromotionsEvaluated

      public void testBasePriceDiscountsRowWithNoPromotionsEvaluated() throws Exception
      Throws:
      Exception
    • testBasePriceDiscountsRowWithonePromotionBeEvaluated

      public void testBasePriceDiscountsRowWithonePromotionBeEvaluated() throws Exception
      Throws:
      Exception
    • getRuleForFile

      protected AbstractRuleEngineRuleModel getRuleForFile(String fileName, String path) throws IOException
      Creates a (non-persisted) AbstractRuleEngineRuleModel based on the given file and path. Note that this implementation assumes that the fileName matches the rule's name (excluding the .drl extension).
      Parameters:
      fileName -
      path -
      Returns:
      new AbstractRuleEngineRuleModel
      Throws:
      IOException
    • buildCartForUserWithCodeProductAndCurrency

      protected CartModel buildCartForUserWithCodeProductAndCurrency(String code, String productCode, int items)
    • buildCartForUserWithCodeAndCurrency

      protected CartModel buildCartForUserWithCodeAndCurrency(String code, String productCode)
    • buildCartWithCodeAndCurrency

      protected CartModel buildCartWithCodeAndCurrency(String code)
    • buildCartWithCodeProductAndCurrency

      protected CartModel buildCartWithCodeProductAndCurrency(String code, String productCode, int items)
    • setCurrency

      protected void setCurrency(CartModelBuilder.CartModelDraft cartModelDraft, String isoCode)
    • initializeRuleEngine

      protected void initializeRuleEngine(AbstractRuleEngineRuleModel... rules)
    • getOnlineCatalogVersion

      protected CatalogVersionModel getOnlineCatalogVersion()
    • getModelService

      protected ModelService getModelService()
    • getCommerceRuleEngineService

      protected RuleEngineService getCommerceRuleEngineService()
    • getRuleEngineContextDao

      protected RuleEngineContextDao getRuleEngineContextDao()
    • getCatalogVersionDao

      protected CatalogVersionDao getCatalogVersionDao()