Class RuleBasePrepareInterceptorIT
- 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.interceptors.RuleBasePrepareInterceptorIT
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class RuleBasePrepareInterceptorIT 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 RuleBasePrepareInterceptorIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractRuleEngineRuleModel
getRuleForFile(java.lang.String fileName, java.lang.String path)
Creates a (non-persisted) AbstractRuleEngineRuleModel based on the given file and path.protected void
initializeRuleEngine(AbstractRuleEngineRuleModel... rules)
protected java.lang.String
readRuleFile(java.lang.String fileName, java.lang.String path)
void
setUp()
void
testTransferCartToOrderUpdateRule()
-
Methods inherited from class de.hybris.platform.promotionengineservices.promotionengine.impl.PromotionEngineServiceBaseTest
getDroolsKIEBaseDao, getKieBaseModel, getPromotionEngineService
-
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 ImpExException, java.io.IOException
- Throws:
ImpExException
java.io.IOException
-
testTransferCartToOrderUpdateRule
public void testTransferCartToOrderUpdateRule() throws java.io.IOException
- Throws:
java.io.IOException
-
initializeRuleEngine
protected void initializeRuleEngine(AbstractRuleEngineRuleModel... rules)
-
getRuleForFile
protected AbstractRuleEngineRuleModel getRuleForFile(java.lang.String fileName, java.lang.String path) throws java.io.IOException
Creates a (non-persisted) AbstractRuleEngineRuleModel based on the given file and path. Note that this implementation assumes that the fileName matches the rule's name (excluding the .drl extension).- Parameters:
fileName
-path
-- Returns:
- new AbstractRuleEngineRuleModel
- Throws:
java.io.IOException
-
readRuleFile
protected java.lang.String readRuleFile(java.lang.String fileName, java.lang.String path) throws java.io.IOException
- Overrides:
readRuleFile
in classPromotionEngineServiceBaseTest
- Throws:
java.io.IOException
-
-