public class RuleTemplateXmlParserTest extends KEWTestCase
KEWTestCase.ClearCacheLifecycle
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
dirty
moduleName
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
log, method
Constructor and Description |
---|
RuleTemplateXmlParserTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertDefaultRuleDefaults(RuleTemplateBo template)
Asserts that if the defaults element is omitted, the correct template rule defaults are set
|
protected void |
assertDefaultTemplateOptions(RuleTemplateBo template)
Asserts that if the defaults element is omitted, the correct RuleTemplateOptions are set (or not set)
|
protected void |
assertNoDefaultsSpecified(RuleTemplateBo template)
Asserts that if the defaults element is omitted, the correct defaults are set
|
protected void |
assertOptionPresence(RuleTemplateBo template,
String key,
boolean present)
Asserts that the rule template has a specific rule template option defined (with any value)
|
protected void |
assertOptionValue(RuleTemplateBo template,
String key,
String value)
Asserts that the rule template has a specific rule template option defined with a specific value
|
protected void |
assertRuleDefaultsAreNull(RuleTemplateBo template)
Tests that the rule default template options are present and set to null.
|
protected void |
assertRuleDefaultsArePresent(RuleTemplateBo 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
|
clearCacheManagers, getGroupIdForName, getLoadApplicationLifecycle, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getPrincipalIdForName, getPrincipalNameForId, getRoleIdForName, getSuiteLifecycles, getTransactionTemplate, loadDefaultTestData, loadPerTestData, loadSuiteTestData, loadXmlFile, loadXmlFile, loadXmlFileFromFileSystem, loadXmlStream, setUpAfterDataLoad
getClearDbPerTestLifecycles, getMode, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles, setUp
getModuleName
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod
public RuleTemplateXmlParserTest()
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(RuleTemplateBo template)
template
- the RuleTemplate to checkprotected void assertDefaultTemplateOptions(RuleTemplateBo template)
template
- the RuleTemplate to checkprotected void assertDefaultRuleDefaults(RuleTemplateBo template)
template
- the RuleTemplate to checkprotected void assertRuleDefaultsArePresent(RuleTemplateBo template, boolean present)
ruleTemplate
- the ruleTemplate to checkpresent
- whether the option should be present or notprotected void assertRuleDefaultsAreNull(RuleTemplateBo template)
ruleTemplate
- the ruleTemplate to checkprotected void assertOptionPresence(RuleTemplateBo template, String key, boolean present)
template
- the rule templatekey
- the RuleTemplateOption keypresent
- whether the option should be presentprotected void assertOptionValue(RuleTemplateBo template, String key, String value)
template
- the rule templatekey
- the RuleTemplateOption keyvalue
- the RuleTemplateOption valuepublic void testAttributeActivationAndRemoval() throws Exception
Exception
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.