@IntegrationTest public class DefaultPromotionEnginePerfTest extends PromotionEngineServiceBaseTest
defaultLanguage, jaloSession| Constructor and Description |
|---|
DefaultPromotionEnginePerfTest() |
configurePromotionEngineService, getPromotionEngineService, readRuleFile, setupImpexAndOverrideEngineContextcreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic void testPromotionEngineServiceUpdatePromotions()
throws IOException
IOExceptionpublic void testPromotionServiceUpdatePromotions()
throws Exception
Exceptionprotected void initializeRule()
throws IOException
IOExceptionprotected CartModel createAndSaveCart(ProductModel product)
protected void evaluateLegacyPromotionForCart(Collection<PromotionGroupModel> groupList, CartModel cart) throws RuntimeException
RuntimeExceptionprotected void evaluatePromotionForCart(Collection<PromotionGroupModel> groupList, CartModel cart)
public void tierDown()
public static void afterTest()
protected AbstractRuleEngineRuleModel getRuleForFile(String fileName, String path) throws IOException
IOExceptionprotected void initializeRuleEngine(AbstractRuleEngineRuleModel... rules)
protected CartModel buildCartForUserWithCodeAndCurrency(String code)
protected CartModel buildCartForUserWithCodeProductAndCurrency(String code, String productCode, int items)
Copyright © 2017 SAP SE. All Rights Reserved.