@IntegrationTest public class DefaultPromotionEngineServiceTest extends PromotionEngineServiceBaseTest
defaultLanguage, jaloSession| Constructor and Description |
|---|
DefaultPromotionEngineServiceTest() |
configurePromotionEngineService, getPromotionEngineService, readRuleFile, setupImpexAndOverrideEngineContextcreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic void setUp()
throws ImpExException,
IOException
ImpExExceptionIOExceptionpublic void testEvaluation()
throws IOException
IOExceptionpublic void testTransferCartToOrderUpdateRule()
throws IOException
IOExceptionpublic void testTransferCartWithPromotionsForEntries()
throws IOException
IOExceptionpublic void testTransferCartToOrderTheSameRule()
throws IOException
IOExceptionpublic void testMultiplePromotionGroups()
throws IOException
IOExceptionprotected AbstractRuleEngineRuleModel getRuleForFile(String fileName, String path) throws IOException
fileName - path - IOExceptionprotected CartModel buildCartForUserWithCodeProductAndCurrency(String code, String productCode, int items)
protected CartModel buildCartForUserWithCodeAndCurrency(String code)
protected CartModel buildCartWithCodeProductAndCurrency(String code, String productCode, int items)
protected void initializeRuleEngine(AbstractRuleEngineRuleModel... rules)
protected List<PromotionGroupModel> getPromoGroup(String code)
protected ModelService getModelService()
protected RuleEngineService getCommerceRuleEngineService()
protected RuleEngineContextDao getRuleEngineContextDao()
protected MediaService getMediaService()
Copyright © 2017 SAP SE. All Rights Reserved.