Class DefaultPromotionEnginePerfTest

    • Constructor Detail

      • DefaultPromotionEnginePerfTest

        public DefaultPromotionEnginePerfTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testPromotionEngineServiceUpdatePromotions

        public void testPromotionEngineServiceUpdatePromotions()
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • testPromotionServiceUpdatePromotions

        public void testPromotionServiceUpdatePromotions()
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • initializeRule

        protected void initializeRule()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • evaluateLegacyPromotionForCart

        protected void evaluateLegacyPromotionForCart​(java.util.Collection<PromotionGroupModel> groupList,
                                                      CartModel cart)
                                               throws java.lang.RuntimeException
        Throws:
        java.lang.RuntimeException
      • evaluatePromotionForCart

        protected void evaluatePromotionForCart​(java.util.Collection<PromotionGroupModel> groupList,
                                                CartModel cart)
      • tierDown

        public void tierDown()
      • afterTest

        public static void afterTest()
      • getRuleForFile

        protected AbstractRuleEngineRuleModel getRuleForFile​(java.lang.String fileName,
                                                             java.lang.String path)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • buildCartForUserWithCodeAndCurrency

        protected CartModel buildCartForUserWithCodeAndCurrency​(java.lang.String code)
      • buildCartForUserWithCodeProductAndCurrency

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

        protected CartModel buildCartWithCode​(java.lang.String code)
      • buildCartWithCodeProduct

        protected CartModel buildCartWithCodeProduct​(java.lang.String code,
                                                     java.lang.String productCode,
                                                     int items)