Class DefaultEntryDiscountsPromotionEngineServiceIntegrationTest

    • Constructor Detail

      • DefaultEntryDiscountsPromotionEngineServiceIntegrationTest

        public DefaultEntryDiscountsPromotionEngineServiceIntegrationTest()
    • Method Detail

      • testOrderEntryDiscountsWithPromotionGroups

        public void testOrderEntryDiscountsWithPromotionGroups()
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • getRuleForFile

        protected AbstractRuleEngineRuleModel getRuleForFile​(java.lang.String fileName,
                                                             java.lang.String path)
                                                      throws java.io.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:
        java.io.IOException
      • buildCartForUserWithCodeProductAndCurrency

        protected CartModel buildCartForUserWithCodeProductAndCurrency​(java.lang.String code,
                                                                       java.lang.String productCode,
                                                                       int items)
      • buildCartForUserWithCodeAndCurrency

        protected CartModel buildCartForUserWithCodeAndCurrency​(java.lang.String code,
                                                                java.lang.String productCode)
      • buildCartWithCodeAndCurrency

        protected CartModel buildCartWithCodeAndCurrency​(java.lang.String code)
      • buildCartWithCodeProductAndCurrency

        protected CartModel buildCartWithCodeProductAndCurrency​(java.lang.String code,
                                                                java.lang.String productCode,
                                                                int items)
      • getModelService

        protected ModelService getModelService()
      • getCommerceRuleEngineService

        protected RuleEngineService getCommerceRuleEngineService()