org.kuali.rice.krms.test
Class RuleManagementContextDefinitionTest
java.lang.Object
org.kuali.rice.test.BaseRiceTestCase
org.kuali.rice.test.RiceTestCase
org.kuali.rice.test.RiceInternalSuiteDataTestCase
org.kuali.rice.test.BaseModuleTestCase
org.kuali.rice.test.BaselineTestCase
org.kuali.rice.krms.test.KRMSTestCase
org.kuali.rice.krms.test.RuleManagementBaseTest
org.kuali.rice.krms.test.RuleManagementContextDefinitionTest
- All Implemented Interfaces:
- MethodAware
public class RuleManagementContextDefinitionTest
- extends RuleManagementBaseTest
RuleManagementContextDefinitionTest is to test the methods of ruleManagementServiceImpl relating to ContextDefinitions
Each test focuses on one of the methods.
Fields inherited from class org.kuali.rice.krms.test.RuleManagementBaseTest |
actionBoService, agendaBoService, CLASS_DISCRIMINATOR, contextRepository, dataObjectService, functionBoService, krmsAttributeDefinitionService, krmsTypeRepository, ruleBoService, ruleManagementService, termBoService |
Method Summary |
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 |
testCreateContext()
Test testCreateContext()
This test focuses specifically on the RuleManagementServiceImpl
.createContext(ContextDefinition contextDefinition) method |
void |
testDeleteContext()
Test testDeleteContext()
This test focuses specifically on the RuleManagementServiceImpl
.deleteContext(String contextId) method |
void |
testFindContextIds()
Test testFindContextIds()
This test focuses specifically on the RuleManagementServiceImpl
.findContextIds(QueryByCriteria queryByCriteria) method |
void |
testFindCreateContext()
Test testFindCreateContext()
This test focuses specifically on the RuleManagementServiceImpl
.findCreateContext(ContextDefinition contextDefinition) method |
void |
testGetContext()
Test testGetContext()
This test focuses specifically on the RuleManagementServiceImpl
.getContext(String contextId) method |
void |
testGetContextByNameAndNamespace()
Test testGetContextByNameAndNamespace()
This test focuses specifically on the RuleManagementServiceImpl
.getContextByNameAndNamespace(String name, String namespace) method |
void |
testUpdateContext()
Test testUpdateContext()
This test focuses specifically on the RuleManagementServiceImpl
.updateContext(ContextDefinition contextDefinition) method |
Methods inherited from class org.kuali.rice.krms.test.RuleManagementBaseTest |
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 |
Methods inherited from class org.kuali.rice.test.RiceTestCase |
configureLogging, dumpMemory, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleManagementContextDefinitionTest
public RuleManagementContextDefinitionTest()
setClassDiscriminator
public void setClassDiscriminator()
- Description copied from class:
RuleManagementBaseTest
- 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.
The Class Discriminator is set by this method
A Test Discriminator may be used to set unique test names at the start of each test.
ex: RuleManagementBaseTestObjectNames.setTestObjectNames(testDiscriminator)
The Object Discriminators are Sequential (object0, object1 ...)
- Overrides:
setClassDiscriminator
in class RuleManagementBaseTest
testCreateContext
public void testCreateContext()
- Test testCreateContext()
This test focuses specifically on the RuleManagementServiceImpl
.createContext(ContextDefinition contextDefinition) method
testFindCreateContext
public void testFindCreateContext()
- Test testFindCreateContext()
This test focuses specifically on the RuleManagementServiceImpl
.findCreateContext(ContextDefinition contextDefinition) method
testUpdateContext
public void testUpdateContext()
- Test testUpdateContext()
This test focuses specifically on the RuleManagementServiceImpl
.updateContext(ContextDefinition contextDefinition) method
testDeleteContext
public void testDeleteContext()
- Test testDeleteContext()
This test focuses specifically on the RuleManagementServiceImpl
.deleteContext(String contextId) method
testGetContext
public void testGetContext()
- Test testGetContext()
This test focuses specifically on the RuleManagementServiceImpl
.getContext(String contextId) method
testGetContextByNameAndNamespace
public void testGetContextByNameAndNamespace()
- Test testGetContextByNameAndNamespace()
This test focuses specifically on the RuleManagementServiceImpl
.getContextByNameAndNamespace(String name, String namespace) method
testFindContextIds
public void testFindContextIds()
- Test testFindContextIds()
This test focuses specifically on the RuleManagementServiceImpl
.findContextIds(QueryByCriteria queryByCriteria) method
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.