org.kuali.rice.kew.actions
Class RouteDocumentTest

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

public class RouteDocumentTest
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 DOCUMENT_TYPE_NAME
           
static String DOCUMENT_TYPE_POLICY_TEST_NAME
           
 
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
RouteDocumentTest()
           
 
Method Summary
protected  void loadTestData()
           
 void testRouteAlreadyRoutedDocument()
          Tests that an exception is thrown if you try to execute a "route" command on an already routed document.
 void testRouteDefaultDocumentAsNonInitiatorUser()
          Tests that an exception is not thrown if you try to execute a "route" command on a document you did not initiate.
 void testRouteDocumentAsNonInitiatorUser()
          Tests that an exception is not thrown if you try to execute a "route" command on a document you did not initiate.
 
Methods inherited from class org.kuali.rice.kew.test.KEWTestCase
clearCacheManagers, 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, 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_POLICY_TEST_NAME

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

RouteDocumentTest

public RouteDocumentTest()
Method Detail

loadTestData

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

testRouteAlreadyRoutedDocument

public void testRouteAlreadyRoutedDocument()
                                    throws Exception
Tests that an exception is thrown if you try to execute a "route" command on an already routed document.

Throws:
Exception

testRouteDocumentAsNonInitiatorUser

public void testRouteDocumentAsNonInitiatorUser()
                                         throws Exception
Tests that an exception is not thrown if you try to execute a "route" command on a document you did not initiate.

Throws:
Exception

testRouteDefaultDocumentAsNonInitiatorUser

public void testRouteDefaultDocumentAsNonInitiatorUser()
                                                throws Exception
Tests that an exception is not thrown if you try to execute a "route" command on a document you did not initiate.

Throws:
Exception


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