|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.kew.test.KEWTestCase org.kuali.rice.kew.xml.RuleTemplateXmlParserTest
public class RuleTemplateXmlParserTest
This is a Test class to test the rule template xml parser
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.kuali.rice.kew.test.KEWTestCase |
---|
KEWTestCase.ClearCacheLifecycle |
Nested classes/interfaces inherited from class org.kuali.rice.test.BaselineTestCase |
---|
BaselineTestCase.BaselineMode, BaselineTestCase.Mode |
Field Summary |
---|
Fields inherited from class org.kuali.rice.test.BaselineTestCase |
---|
dirty |
Fields inherited from class org.kuali.rice.test.BaseModuleTestCase |
---|
moduleName |
Fields inherited from class org.kuali.rice.test.RiceTestCase |
---|
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles |
Fields inherited from class org.kuali.rice.test.BaseRiceTestCase |
---|
log, method |
Constructor Summary | |
---|---|
RuleTemplateXmlParserTest()
|
Method Summary | |
---|---|
protected void |
assertDefaultRuleDefaults(RuleTemplate template)
Asserts that if the defaults element is omitted, the correct template rule defaults are set |
protected void |
assertDefaultTemplateOptions(RuleTemplate template)
Asserts that if the defaults element is omitted, the correct RuleTemplateOptions are set (or not set) |
protected void |
assertNoDefaultsSpecified(RuleTemplate template)
Asserts that if the defaults element is omitted, the correct defaults are set |
protected void |
assertOptionPresence(RuleTemplate template,
String key,
boolean present)
Asserts that the rule template has a specific rule template option defined (with any value) |
protected void |
assertOptionValue(RuleTemplate template,
String key,
String value)
Asserts that the rule template has a specific rule template option defined with a specific value |
protected void |
assertRuleDefaultsAreNull(RuleTemplate template)
Tests that the rule default template options are present and set to null. |
protected void |
assertRuleDefaultsArePresent(RuleTemplate template,
boolean present)
Tests that the rule default template options are present. |
protected void |
loadTestData()
|
void |
testAttributeActivationAndRemoval()
|
void |
testLoadInvalidTemplateWithOverwrite()
Tests attempting to overwrite a template without the allowOverwrite flag set to true |
void |
testLoadValidTemplate()
Loads valid template definitions |
void |
testLoadValidTemplateFullWithOverwrite()
Loads a "full" template definition and then updates/overwrites it |
void |
testLoadValidTemplateWithDescriptionDefault()
Tests loading a template with the minimal required ruleDefaults |
void |
testLoadValidTemplateWithFullDefaults()
Tests loading a template with a full ruleDefaults section |
void |
testLoadValidTemplateWithOverwrite()
Loads a "minimal" template definition and then updates/overwrites it |
void |
testLoadValidTemplateWithSomeDefaults()
Tests loading a template with a partial ruleDefaults section |
void |
testLoadValidTemplateWithSomeDefaultsOverwrite()
Tests loading a template with a partial ruleDefaults section and then updating/overwriting it |
void |
testLoadValidTemplateWithSomeRemovedDefaults()
Tests loading a template with a partial ruleDefaults section, and then updating/overwriting it with one with no ruleDefaults section defined at all |
Methods inherited from class org.kuali.rice.kew.test.KEWTestCase |
---|
getGroupIdForName, getLoadApplicationLifecycle, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getPrincipalIdForName, getPrincipalNameForId, getSuiteLifecycles, getTransactionTemplate, loadDefaultTestData, loadPerTestData, loadSuiteTestData, loadXmlFile, loadXmlFile, loadXmlFileFromFileSystem, loadXmlStream, setUpAfterDataLoad |
Methods inherited from class org.kuali.rice.test.BaselineTestCase |
---|
getClearDbPerTestLifecycles, getMode, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles, setUp |
Methods inherited from class org.kuali.rice.test.BaseModuleTestCase |
---|
getModuleName |
Methods inherited from class org.kuali.rice.test.RiceInternalSuiteDataTestCase |
---|
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKNSDefaultSuiteTestData |
Methods inherited from class org.kuali.rice.test.BaseRiceTestCase |
---|
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuleTemplateXmlParserTest()
Method Detail |
---|
protected void loadTestData() throws Exception
loadTestData
in class KEWTestCase
Exception
public void testLoadValidTemplate() throws Exception
Exception
public void testLoadValidTemplateWithOverwrite() throws Exception
Exception
public void testLoadValidTemplateFullWithOverwrite() throws Exception
Exception
public void testLoadInvalidTemplateWithOverwrite() throws Exception
Exception
public void testLoadValidTemplateWithFullDefaults() throws Exception
Exception
public void testLoadValidTemplateWithSomeDefaults() throws Exception
Exception
public void testLoadValidTemplateWithSomeDefaultsOverwrite() throws Exception
Exception
public void testLoadValidTemplateWithSomeRemovedDefaults() throws Exception
Exception
public void testLoadValidTemplateWithDescriptionDefault() throws Exception
Exception
protected void assertNoDefaultsSpecified(RuleTemplate template)
template
- the RuleTemplate to checkprotected void assertDefaultTemplateOptions(RuleTemplate template)
template
- the RuleTemplate to checkprotected void assertDefaultRuleDefaults(RuleTemplate template)
template
- the RuleTemplate to checkprotected void assertRuleDefaultsArePresent(RuleTemplate template, boolean present)
ruleTemplate
- the ruleTemplate to checkpresent
- whether the option should be present or notprotected void assertRuleDefaultsAreNull(RuleTemplate template)
ruleTemplate
- the ruleTemplate to checkprotected void assertOptionPresence(RuleTemplate template, String key, boolean present)
template
- the rule templatekey
- the RuleTemplateOption keypresent
- whether the option should be presentprotected void assertOptionValue(RuleTemplate template, String key, String value)
template
- the rule templatekey
- the RuleTemplateOption keyvalue
- the RuleTemplateOption valuepublic void testAttributeActivationAndRemoval() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |