Class DefaultValidationAndOutputEncodingITTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.droolsruleengineservices.impl.AbstractRuleEngineServicesTest
-
- de.hybris.platform.droolsruleengineservices.compiler.impl.DefaultValidationAndOutputEncodingITTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class DefaultValidationAndOutputEncodingITTest extends AbstractRuleEngineServicesTest
Tests the Validation and output encoding.
-
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.ExpectedExceptionexpectedException-
Fields inherited from class de.hybris.platform.droolsruleengineservices.impl.AbstractRuleEngineServicesTest
RULE_ENGINGE_CONTEXT_NAME, RULE_ENGINGE_KBASE_JUNIT, RULE_ENGINGE_KMODULE_JUNIT
-
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 DefaultValidationAndOutputEncodingITTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DroolsRuleGeneratorContextcreateGeneratorContext(RuleCompilerContext context, RuleIr ruleIr, DroolsRuleModel droolsRule)protected java.lang.StringgetResourceAsString(java.lang.String name)protected java.lang.StringgetRuleGroupCode(AbstractRuleModel rule)protected DroolsRuleGeneratorContextprepareContext()voidsetUp()voidtestOutputEncoding()voidtestValidationOfActions()-
Methods inherited from class de.hybris.platform.droolsruleengineservices.impl.AbstractRuleEngineServicesTest
buildCartWithCodeAndCurrency, buildNotEmptyCartWithCodeAndCurrency, buildRAOsForCartWithCode, buildRAOsForNotEmptyCartWithCode, createCartRAO, createDeliveryModeRAO, createOrderEntryRAO, createOrderEntryRAO, evaluate, evaluateAndFailOnError, getCommerceRuleEngineService, getDroolsKIEBaseDao, getEngineRuleDao, getKieBase, getKieBaseOrCreateNew, getMediaService, getModelService, getPlatformRuleEngineService, getReleaseId, getRuleEngineCalculationService, getRuleEngineContextDao, getRuleForFile, getRuleForFile, getRulesModuleDao, getTestRulesModule, initializeRuleEngine, initializeRuleEngine, prepareContext, provideRAOs, readRuleFile, set
-
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- Throws:
ImpExException
-
testOutputEncoding
public void testOutputEncoding() throws java.io.IOException- Throws:
java.io.IOException
-
testValidationOfActions
public void testValidationOfActions() throws java.io.IOException- Throws:
java.io.IOException
-
prepareContext
protected DroolsRuleGeneratorContext prepareContext() throws java.io.IOException
- Throws:
java.io.IOException
-
getRuleGroupCode
protected java.lang.String getRuleGroupCode(AbstractRuleModel rule)
-
createGeneratorContext
protected DroolsRuleGeneratorContext createGeneratorContext(RuleCompilerContext context, RuleIr ruleIr, DroolsRuleModel droolsRule)
-
getResourceAsString
protected java.lang.String getResourceAsString(java.lang.String name) throws java.io.IOException- Throws:
java.io.IOException
-
-