org.kuali.rice.kew.actions
Class SaveActionEventTest

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.actions.SaveActionEventTest
All Implemented Interfaces:
MethodAware

public class SaveActionEventTest
extends KEWTestCase


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
static String ADHOC_NODE
           
static String DOCUMENT_TYPE_NAME
           
static String DOCUMENT_TYPE_NAME_NON_INITIATOR
           
static String WORKFLOW_DOCUMENT_NODE
           
 
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
SaveActionEventTest()
           
 
Method Summary
protected  void loadTestData()
           
 void testDefaultInitiatorMustSavePolicy()
          Tests for when INITIATOR_MUST_SAVE policy is equal to true (default value).
 void testFalseInitiatorMustSavePolicy()
          Tests for when INITIATOR_MUST_SAVE policy is equal to false.
 void testSaveActionEvent()
           
 
Methods inherited from class org.kuali.rice.kew.test.KEWTestCase
clearCacheManagers, getGroupIdForName, getLoadApplicationLifecycle, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getPrincipalIdForName, getPrincipalNameForId, getRoleIdForName, 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, 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
 

Field Detail

DOCUMENT_TYPE_NAME

public static final String DOCUMENT_TYPE_NAME
See Also:
Constant Field Values

DOCUMENT_TYPE_NAME_NON_INITIATOR

public static final String DOCUMENT_TYPE_NAME_NON_INITIATOR
See Also:
Constant Field Values

ADHOC_NODE

public static final String ADHOC_NODE
See Also:
Constant Field Values

WORKFLOW_DOCUMENT_NODE

public static final String WORKFLOW_DOCUMENT_NODE
See Also:
Constant Field Values
Constructor Detail

SaveActionEventTest

public SaveActionEventTest()
Method Detail

loadTestData

protected void loadTestData()
                     throws Exception
Overrides:
loadTestData in class KEWTestCase
Throws:
Exception

testSaveActionEvent

public void testSaveActionEvent()
                         throws Exception
Throws:
Exception

testDefaultInitiatorMustSavePolicy

public void testDefaultInitiatorMustSavePolicy()
                                        throws Exception
Tests for when INITIATOR_MUST_SAVE policy is equal to true (default value). In this case if non-initiator user attempts a save of a document with this policy an exception should be thrown

Throws:
Exception

testFalseInitiatorMustSavePolicy

public void testFalseInitiatorMustSavePolicy()
                                      throws Exception
Tests for when INITIATOR_MUST_SAVE policy is equal to false. In this case if non-initiator user attempts a save of a document with this policy an exception should NOT be thrown

Throws:
Exception


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