Class AbstractSourceRulesAwareIT
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.ruleengine.init.BulkyTestDataLoader<SourceRuleModel>
-
- de.hybris.platform.ruleengineservices.init.AbstractSourceRulesAwareIT
-
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
DefaultRuleEngineCronJobLauncherPerformanceTest
,DefaultRuleMaintenanceServiceIntegrationTest
,DefaultRuleMaintenanceServicePerformanceTest
public abstract class AbstractSourceRulesAwareIT extends BulkyTestDataLoader<SourceRuleModel>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<SourceRuleModel>
sampleRules
protected static java.lang.String
TEST_MODULE_NAME_PARAM
protected static java.lang.String
TEST_RULE_ENGINE_CONTEXT_PARAM
protected static java.lang.String
TEST_SOURCE_RULE_CODE_PARAM
protected java.lang.String
testKieModuleName
protected java.lang.String
testRuleEngineContextName
protected java.lang.String
testSourceRuleCode
-
Fields inherited from class de.hybris.platform.ruleengine.init.BulkyTestDataLoader
stopwatch
-
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 AbstractSourceRulesAwareIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cloneSourceRules(int cloneFactor)
Clone the sample source rule to specified number of instancesprotected CartRAO
createCartRAO(java.lang.String code, java.lang.String currencyIso)
protected void
deleteRules(java.lang.String ruleCode, int... cloneIds)
protected java.lang.String
getCodeForClonedRule(java.lang.String basicRuleCode, int cloneOrder)
protected EngineRuleDao
getEngineRuleDao()
protected ModelService
getModelService()
protected RuleDao
getRuleDao()
protected java.util.List<SourceRuleModel>
getSourceRulesSubset(java.lang.String ruleCode, int... cloneIds)
protected java.lang.String
modifyRuleActions(java.lang.String ruleActions)
void
setUp()
protected void
updateSourceRules(java.lang.String sourceRuleCode, int... cloneIds)
Update the cloned source rules for specified ids-
Methods inherited from class de.hybris.platform.ruleengine.init.BulkyTestDataLoader
getConfigurationService, loadData
-
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
-
-
-
-
Field Detail
-
TEST_SOURCE_RULE_CODE_PARAM
protected static final java.lang.String TEST_SOURCE_RULE_CODE_PARAM
- See Also:
- Constant Field Values
-
TEST_MODULE_NAME_PARAM
protected static final java.lang.String TEST_MODULE_NAME_PARAM
- See Also:
- Constant Field Values
-
TEST_RULE_ENGINE_CONTEXT_PARAM
protected static final java.lang.String TEST_RULE_ENGINE_CONTEXT_PARAM
- See Also:
- Constant Field Values
-
testSourceRuleCode
protected java.lang.String testSourceRuleCode
-
testKieModuleName
protected java.lang.String testKieModuleName
-
testRuleEngineContextName
protected java.lang.String testRuleEngineContextName
-
sampleRules
protected java.util.List<SourceRuleModel> sampleRules
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
cloneSourceRules
protected void cloneSourceRules(int cloneFactor)
Clone the sample source rule to specified number of instances- Parameters:
cloneFactor
- the clone factor (number of source rules to get as a result of clone)
-
updateSourceRules
protected void updateSourceRules(java.lang.String sourceRuleCode, int... cloneIds)
Update the cloned source rules for specified ids- Parameters:
sourceRuleCode
- the sample source rule codecloneIds
- ids of the source rules to update
-
modifyRuleActions
protected java.lang.String modifyRuleActions(java.lang.String ruleActions)
-
getCodeForClonedRule
protected java.lang.String getCodeForClonedRule(java.lang.String basicRuleCode, int cloneOrder)
-
deleteRules
protected void deleteRules(java.lang.String ruleCode, int... cloneIds)
-
getSourceRulesSubset
protected java.util.List<SourceRuleModel> getSourceRulesSubset(java.lang.String ruleCode, int... cloneIds)
-
createCartRAO
protected CartRAO createCartRAO(java.lang.String code, java.lang.String currencyIso)
-
getRuleDao
protected RuleDao getRuleDao()
-
getModelService
protected ModelService getModelService()
-
getEngineRuleDao
protected EngineRuleDao getEngineRuleDao()
-
-