Class DefaultPromotionEnginePerfTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.promotionengineservices.promotionengine.impl.PromotionEngineServiceBaseTest
-
- de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionEnginePerfTest
-
- All Implemented Interfaces:
JaloSessionHolder
@PerformanceTest(executions=0) public class DefaultPromotionEnginePerfTest extends PromotionEngineServiceBaseTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description DefaultPromotionEnginePerfTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidafterTest()protected CartModelbuildCartForUserWithCodeAndCurrency(java.lang.String code)protected CartModelbuildCartForUserWithCodeProductAndCurrency(java.lang.String code, java.lang.String productCode, int items)protected CartModelbuildCartWithCode(java.lang.String code)protected CartModelbuildCartWithCodeProduct(java.lang.String code, java.lang.String productCode, int items)protected CartModelcreateAndSaveCart(ProductModel product)protected voidevaluateLegacyPromotionForCart(java.util.Collection<PromotionGroupModel> groupList, CartModel cart)protected voidevaluatePromotionForCart(java.util.Collection<PromotionGroupModel> groupList, CartModel cart)protected AbstractRuleEngineRuleModelgetRuleForFile(java.lang.String fileName, java.lang.String path)protected voidinitializeRule()protected voidinitializeRuleEngine(AbstractRuleEngineRuleModel... rules)voidsetUp()voidtestPromotionEngineServiceUpdatePromotions()voidtestPromotionServiceUpdatePromotions()voidtierDown()-
Methods inherited from class de.hybris.platform.promotionengineservices.promotionengine.impl.PromotionEngineServiceBaseTest
getDroolsKIEBaseDao, getKieBaseModel, getPromotionEngineService, readRuleFile
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
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
-
createAndSaveCart
protected CartModel createAndSaveCart(ProductModel product)
-
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
-
initializeRuleEngine
protected void initializeRuleEngine(AbstractRuleEngineRuleModel... rules)
-
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)
-
-