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.PromotionEngineServiceBaseTestBase
de.hybris.platform.promotionengineservices.interceptors.RuleBasePrepareInterceptorIT
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest
public class RuleBasePrepareInterceptorIT
extends PromotionEngineServiceBaseTestBase
-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractRuleEngineRuleModelgetRuleForFile(String fileName, String path) Creates a (non-persisted) AbstractRuleEngineRuleModel based on the given file and path.protected voidprotected StringreadRuleFile(String fileName, String path) voidsetUp()voidMethods inherited from class de.hybris.platform.promotionengineservices.promotionengine.impl.PromotionEngineServiceBaseTestBase
getDroolsKIEBaseDao, getKieBaseModelMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
RuleBasePrepareInterceptorIT
public RuleBasePrepareInterceptorIT()
-
-
Method Details
-
setUp
- Throws:
ImpExExceptionIOException
-
testTransferCartToOrderUpdateRule
- Throws:
IOException
-
initializeRuleEngine
-
getRuleForFile
protected AbstractRuleEngineRuleModel getRuleForFile(String fileName, String path) throws 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:
IOException
-
readRuleFile
- Overrides:
readRuleFilein classPromotionEngineServiceBaseTestBase- Throws:
IOException
-