org.kuali.rice.kew.rule
Class RuleTemplateDefaultsTest

java.lang.Object
  extended by org.kuali.rice.test.BaseRiceTestCase
      extended by org.kuali.rice.test.RiceTestCase
          extended by org.kuali.rice.test.RiceInternalSuiteDataTestCase
              extended by org.kuali.rice.test.BaseModuleTestCase
                  extended by org.kuali.rice.test.BaselineTestCase
                      extended by org.kuali.rice.kew.test.KEWTestCase
                          extended by org.kuali.rice.kew.rule.RuleTemplateDefaultsTest
All Implemented Interfaces:
MethodAware

public class RuleTemplateDefaultsTest
extends KEWTestCase

This class tests the code that handles the default values for the rule templates.

Author:
Kuali Rice Team (rice.collab@kuali.org)

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
LOG, 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
RuleTemplateDefaultsTest()
           
 
Method Summary
 void testAllTrueOptionsInTestRuleTemplate()
          Tests to ensure that the "TestRuleTemplate" in DefaultTestData.xml has the four action request options defined as "true", either explicitly or by default.
 void testCorrectKeyValuesReturnedBasedOnKualiFormInstance()
          Tests to ensure that the proper key values are returned based upon the class type of the currently-set Kuali form.
 void testOptionsInRT_ValidRuleTemplatesWithVaryingDefaults()
          Tests to ensure that the rule template in RT_ValidRuleTemplateWithFullDefaults.xml has the expected action request options.
 
Methods inherited from class org.kuali.rice.kew.test.KEWTestCase
clearCacheManagers, getGroupIdForName, getLoadApplicationLifecycle, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getPrincipalIdForName, getPrincipalNameForId, getSuiteLifecycles, getTransactionTemplate, loadDefaultTestData, loadPerTestData, loadSuiteTestData, loadTestData, 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, getKRADDefaultSuiteTestData
 
Methods inherited from class org.kuali.rice.test.RiceTestCase
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
 
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

RuleTemplateDefaultsTest

public RuleTemplateDefaultsTest()
Method Detail

testAllTrueOptionsInTestRuleTemplate

public void testAllTrueOptionsInTestRuleTemplate()
                                          throws Exception
Tests to ensure that the "TestRuleTemplate" in DefaultTestData.xml has the four action request options defined as "true", either explicitly or by default.

Throws:
Exception

testCorrectKeyValuesReturnedBasedOnKualiFormInstance

public void testCorrectKeyValuesReturnedBasedOnKualiFormInstance()
                                                          throws Exception
Tests to ensure that the proper key values are returned based upon the class type of the currently-set Kuali form.

Throws:
Exception

testOptionsInRT_ValidRuleTemplatesWithVaryingDefaults

public void testOptionsInRT_ValidRuleTemplatesWithVaryingDefaults()
                                                           throws Exception
Tests to ensure that the rule template in RT_ValidRuleTemplateWithFullDefaults.xml has the expected action request options.

Throws:
Exception


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.