public class RuleManagementRuleDefinitionTest extends RuleManagementBaseTest
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
actionBoService, agendaBoService, businessObjectService, CLASS_DISCRIMINATOR, contextRepository, functionBoService, krmsAttributeDefinitionService, krmsTypeRepository, ruleBoService, ruleManagementService, termBoService
dirty
LOG, moduleName
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
log, method
Constructor and Description |
---|
RuleManagementRuleDefinitionTest() |
Modifier and Type | Method and Description |
---|---|
void |
setClassDiscriminator()
Extending test classes can override setClassDiscriminator method and set a unique value for the class
The override method should be called @before tests to ensure a unique discriminator for the class
Test object naming is comprised of class, test and object uniqueness discriminators.
|
void |
testCreateRule()
Test testCreateRule()
This test focuses specifically on the RuleManagementServiceImpl .createRule(RuleDefinition) method
|
void |
testDeleteRule()
Test testDeleteRule()
This test focuses specifically on the RuleManagementServiceImpl .deleteRule("rule id") method
|
void |
testFindRuleIds()
Test testFindRuleIds()
This test focuses specifically on the RuleManagementServiceImpl .findRuleIds( QueryByCriteria) method
|
void |
testGetRule()
Test testGetRule()
This test focuses specifically on the RuleManagementServiceImpl .getRule("rule id") method
|
void |
testGetRuleByNameAndNamespace()
Test testGetRuleByNameAndNamespace()
This test focuses specifically on the RuleManagementServiceImpl .getRuleByNameAndNamespace("rule name", "namespace") method
|
void |
testGetRules()
Test testGetRules()
This test focuses specifically on the RuleManagementServiceImpl .getRules(List
|
void |
testRuleCacheEvict()
Tests whether the
RuleDefinition cache is being evicted properly by checking the status the dependent
objects before and after creating an RuleDefinition (and consequently emptying the cache). |
void |
testUpdateRule()
Test testUpdateRule()
This test focuses specifically on the RuleManagementServiceImpl .updateRule(RuleDefinition) method
|
buildComplexAgenda, buildTestActionDefinition, buildTestActionDefinition, buildTestAgendaItemDefinition, buildTestContext, buildTestNaturalLanguageUsage, buildTestRuleDefinition, createComplexAgenda, createKrmsActionTypeDefinition, createKrmsTypeDefinition, createKrmsTypeDefinition, createReferenceObjectBinding, createTestAgenda, createTestAgenda, createTestCompoundProposition, createTestKrmsAttribute, createTestNaturalLanguageTemplate, createTestNaturalLanguageTemplate, createTestPropositionForRule, createTestPropositionForTranslation, createTestReferenceObjectBinding, createTestSimpleProposition, createTestTermSpecification, getPerTestTablesNotToClear, setup
getLoadApplicationLifecycle, getModuleName, getPerTestTablesToClear, getSuiteLifecycles, loadSuiteTestData
getClearDbPerTestLifecycles, getMode, getPerTestLifecycles, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles, setUp
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod
public RuleManagementRuleDefinitionTest()
public void setClassDiscriminator()
RuleManagementBaseTest
setClassDiscriminator
in class RuleManagementBaseTest
public void testGetRuleByNameAndNamespace()
public void testCreateRule()
public void testUpdateRule()
public void testDeleteRule()
public void testFindRuleIds()
public void testGetRule()
public void testGetRules()
public void testRuleCacheEvict()
RuleDefinition
cache is being evicted properly by checking the status the dependent
objects before and after creating an RuleDefinition
(and consequently emptying the cache).
The following object caches are affected:
RuleDefinition
, PropositionDefinition
, ActionDefinition
, AgendaItemDefinition
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.