@IntegrationTest public class DefaultPromotionEngineServiceTest extends PromotionEngineServiceBaseTest
importServicejaloSession| Constructor and Description |
|---|
DefaultPromotionEngineServiceTest() |
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 ImpExException,
java.io.IOException
ImpExExceptionjava.io.IOExceptionpublic void testEvaluation()
throws java.io.IOException
java.io.IOExceptionpublic void testEvaluationWithActualDate()
throws java.io.IOException
java.io.IOExceptionpublic void testEvaluationWithNotActualDate()
throws java.io.IOException
java.io.IOExceptionpublic void testTransferCartToOrderUpdateRule()
throws java.io.IOException
java.io.IOExceptionpublic void testTransferCartWithPromotionsForEntries()
throws java.io.IOException
java.io.IOExceptionpublic void testTransferCartToOrderTheSameRule()
throws java.io.IOException
java.io.IOExceptionpublic void testMultiplePromotionGroups()
throws java.io.IOException
java.io.IOExceptionpublic void testNoCatalogVersionPromotionFromSession()
throws java.io.IOException
java.io.IOExceptionpublic void testEmptyCartRuleEngineContextIsUnique()
throws java.io.IOException
java.io.IOExceptionpublic void testEmptyCartRuleEngineContextIsNotUnique()
throws java.io.IOException
java.io.IOExceptionprotected AbstractRuleEngineRuleModel getRuleForFile(java.lang.String fileName, java.lang.String path) throws java.io.IOException
fileName - path - java.io.IOExceptionprotected CartModel buildCartForUserWithCodeProductAndCurrency(java.lang.String code, java.lang.String productCode, int items)
protected CartModel buildCartForUserWithCodeAndCurrency(java.lang.String code, java.lang.String productCode)
protected CartModel buildCartWithCodeAndCurrency(java.lang.String code)
protected CartModel buildCartWithCodeProductAndCurrency(java.lang.String code, java.lang.String productCode, int items)
protected void setCurrency(CartModelBuilder.CartModelDraft cartModelDraft, java.lang.String isoCode)
protected void initializeRuleEngine(AbstractRuleEngineRuleModel... rules)
protected CatalogVersionModel getOnlineCatalogVersion()
protected java.util.List<PromotionGroupModel> getPromoGroup(java.lang.String code)
protected ModelService getModelService()
protected RuleEngineService getCommerceRuleEngineService()
protected RuleEngineContextDao getRuleEngineContextDao()
protected MediaService getMediaService()
protected CatalogVersionDao getCatalogVersionDao()
Copyright © 2018 SAP SE. All Rights Reserved.