@PerformanceTest(executions=0) public class DefaultPromotionEnginePerfTest extends PromotionEngineServiceBaseTest
importServicejaloSession| Constructor and Description |
|---|
DefaultPromotionEnginePerfTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterTest() |
protected CartModel |
buildCartForUserWithCodeAndCurrency(java.lang.String code) |
protected CartModel |
buildCartForUserWithCodeProductAndCurrency(java.lang.String code,
java.lang.String productCode,
int items) |
protected CartModel |
buildCartWithCode(java.lang.String code) |
protected CartModel |
buildCartWithCodeProduct(java.lang.String code,
java.lang.String productCode,
int items) |
protected CartModel |
createAndSaveCart(ProductModel product) |
protected void |
evaluateLegacyPromotionForCart(java.util.Collection<PromotionGroupModel> groupList,
CartModel cart) |
protected void |
evaluatePromotionForCart(java.util.Collection<PromotionGroupModel> groupList,
CartModel cart) |
protected AbstractRuleEngineRuleModel |
getRuleForFile(java.lang.String fileName,
java.lang.String path) |
protected void |
initializeRule() |
protected void |
initializeRuleEngine(AbstractRuleEngineRuleModel... rules) |
void |
setUp() |
void |
testPromotionEngineServiceUpdatePromotions() |
void |
testPromotionServiceUpdatePromotions() |
void |
tierDown() |
getDroolsKIEBaseDao, getKieBaseModel, getPromotionEngineService, readRuleFilecreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testPromotionEngineServiceUpdatePromotions()
throws java.io.IOException
java.io.IOExceptionpublic void testPromotionServiceUpdatePromotions()
throws java.lang.Exception
java.lang.Exceptionprotected void initializeRule()
throws java.io.IOException
java.io.IOExceptionprotected CartModel createAndSaveCart(ProductModel product)
protected void evaluateLegacyPromotionForCart(java.util.Collection<PromotionGroupModel> groupList, CartModel cart) throws java.lang.RuntimeException
java.lang.RuntimeExceptionprotected void evaluatePromotionForCart(java.util.Collection<PromotionGroupModel> groupList, CartModel cart)
public void tierDown()
public static void afterTest()
protected AbstractRuleEngineRuleModel getRuleForFile(java.lang.String fileName, java.lang.String path) throws java.io.IOException
java.io.IOExceptionprotected void initializeRuleEngine(AbstractRuleEngineRuleModel... rules)
protected CartModel buildCartForUserWithCodeAndCurrency(java.lang.String code)
protected CartModel buildCartForUserWithCodeProductAndCurrency(java.lang.String code, java.lang.String productCode, int items)
protected CartModel buildCartWithCode(java.lang.String code)
protected CartModel buildCartWithCodeProduct(java.lang.String code, java.lang.String productCode, int items)
Copyright © 2018 SAP SE. All Rights Reserved.