Class DroolsRuleValidationTest
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.impl.DroolsRuleValidationTest
- All Implemented Interfaces:
JaloSessionHolder
Tests the validate-intercepter logic around the DroolsRule type.
-
Field Summary
Fields inherited from class de.hybris.platform.droolsruleengineservices.impl.AbstractRuleEngineServicesTest
RULE_ENGINGE_CONTEXT_NAME, RULE_ENGINGE_KBASE_JUNIT, RULE_ENGINGE_KMODULE_JUNITFields 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 ConfigurationServicevoidsetConfigurationService(ConfigurationService configurationService) voidsetUp()voidtearDown()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods 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, setMethods 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
-
DroolsRuleValidationTest
public DroolsRuleValidationTest()
-
-
Method Details
-
setUp
- Throws:
ImpExException
-
tearDown
public void tearDown() -
testDroolsRuleNameAndPackageValidateInterceptorNotTriggered
public void testDroolsRuleNameAndPackageValidateInterceptorNotTriggered() throws ImpExException, IOException- Throws:
ImpExExceptionIOException
-
testDroolsRuleNameAndPackageValidateInterceptorTriggeredDuringCreate
public void testDroolsRuleNameAndPackageValidateInterceptorTriggeredDuringCreate() throws ImpExException, IOException- Throws:
ImpExExceptionIOException
-
testDroolsRuleInvalidCharacterInRuleName
- Throws:
ImpExExceptionIOException
-
testDroolsRuleInvalidCharacterInRuleNameValidationDisabled
public void testDroolsRuleInvalidCharacterInRuleNameValidationDisabled() throws ImpExException, IOException- Throws:
ImpExExceptionIOException
-
testDroolsRuleInvalidCharacterInRuleCode
- Throws:
ImpExExceptionIOException
-
testDroolsRuleInvalidCharacterInRuleCodeValidationDisabled
public void testDroolsRuleInvalidCharacterInRuleCodeValidationDisabled() throws ImpExException, IOException- Throws:
ImpExExceptionIOException
-
testDroolsRuleMismatchRuleCode
- Throws:
IOException
-
testDroolsRuleWithWhiteSpacesInRuleCode
- Throws:
IOException
-
testDroolsRuleMismatchRuleCodeValidationDisabled
- Throws:
IOException
-
testDroolsRuleMismatchRuleName
- Throws:
IOException
-
testDroolsRuleMismatchRuleNameValidationDisabled
- Throws:
IOException
-
testDroolsRuleMismatchRulePackage
- Throws:
IOException
-
testDroolsRuleMismatchRulePackageValidationDisabled
- Throws:
IOException
-
getConfigurationService
-
setConfigurationService
-