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
@IntegrationTest public class DroolsRuleValidationTest extends AbstractRuleEngineServicesTest
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_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 DroolsRuleValidationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConfigurationService
getConfigurationService()
void
setConfigurationService(ConfigurationService configurationService)
void
setUp()
void
tearDown()
void
testDroolsRuleInvalidCharacterInRuleCode()
void
testDroolsRuleInvalidCharacterInRuleCodeValidationDisabled()
void
testDroolsRuleInvalidCharacterInRuleName()
void
testDroolsRuleInvalidCharacterInRuleNameValidationDisabled()
void
testDroolsRuleMismatchRuleCode()
void
testDroolsRuleMismatchRuleCodeValidationDisabled()
void
testDroolsRuleMismatchRuleName()
void
testDroolsRuleMismatchRuleNameValidationDisabled()
void
testDroolsRuleMismatchRulePackage()
void
testDroolsRuleMismatchRulePackageValidationDisabled()
void
testDroolsRuleNameAndPackageValidateInterceptorNotTriggered()
void
testDroolsRuleNameAndPackageValidateInterceptorTriggeredDuringCreate()
void
testDroolsRuleWithWhiteSpacesInRuleCode()
-
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
-
tearDown
public void tearDown()
-
testDroolsRuleNameAndPackageValidateInterceptorNotTriggered
public void testDroolsRuleNameAndPackageValidateInterceptorNotTriggered() throws ImpExException, java.io.IOException
- Throws:
ImpExException
java.io.IOException
-
testDroolsRuleNameAndPackageValidateInterceptorTriggeredDuringCreate
public void testDroolsRuleNameAndPackageValidateInterceptorTriggeredDuringCreate() throws ImpExException, java.io.IOException
- Throws:
ImpExException
java.io.IOException
-
testDroolsRuleInvalidCharacterInRuleName
public void testDroolsRuleInvalidCharacterInRuleName() throws ImpExException, java.io.IOException
- Throws:
ImpExException
java.io.IOException
-
testDroolsRuleInvalidCharacterInRuleNameValidationDisabled
public void testDroolsRuleInvalidCharacterInRuleNameValidationDisabled() throws ImpExException, java.io.IOException
- Throws:
ImpExException
java.io.IOException
-
testDroolsRuleInvalidCharacterInRuleCode
public void testDroolsRuleInvalidCharacterInRuleCode() throws ImpExException, java.io.IOException
- Throws:
ImpExException
java.io.IOException
-
testDroolsRuleInvalidCharacterInRuleCodeValidationDisabled
public void testDroolsRuleInvalidCharacterInRuleCodeValidationDisabled() throws ImpExException, java.io.IOException
- Throws:
ImpExException
java.io.IOException
-
testDroolsRuleMismatchRuleCode
public void testDroolsRuleMismatchRuleCode() throws java.io.IOException
- Throws:
java.io.IOException
-
testDroolsRuleWithWhiteSpacesInRuleCode
public void testDroolsRuleWithWhiteSpacesInRuleCode() throws java.io.IOException
- Throws:
java.io.IOException
-
testDroolsRuleMismatchRuleCodeValidationDisabled
public void testDroolsRuleMismatchRuleCodeValidationDisabled() throws java.io.IOException
- Throws:
java.io.IOException
-
testDroolsRuleMismatchRuleName
public void testDroolsRuleMismatchRuleName() throws java.io.IOException
- Throws:
java.io.IOException
-
testDroolsRuleMismatchRuleNameValidationDisabled
public void testDroolsRuleMismatchRuleNameValidationDisabled() throws java.io.IOException
- Throws:
java.io.IOException
-
testDroolsRuleMismatchRulePackage
public void testDroolsRuleMismatchRulePackage() throws java.io.IOException
- Throws:
java.io.IOException
-
testDroolsRuleMismatchRulePackageValidationDisabled
public void testDroolsRuleMismatchRulePackageValidationDisabled() throws java.io.IOException
- Throws:
java.io.IOException
-
getConfigurationService
protected ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
-