org.kuali.rice.kew.actions
Class BlanketApproveTest

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

public class BlanketApproveTest
extends KEWTestCase


Nested Class Summary
static class BlanketApproveTest.NotifySetup
           
 
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
BlanketApproveTest()
           
 
Method Summary
protected  void loadTestData()
           
 void testBlanketApproveIntoBranch()
           
 void testBlanketApproveNotification()
          Tests that the notifications are generated properly on a blanket approve.
 void testBlanketApproveParallel()
           
 void testBlanketApprovePastMandatoryNode()
          Tests that we can blanket approve past mandatory route nodes.
 void testBlanketApproverNotInBlanketApproverWorkgroup()
          When a user is not in the blanket approver workgroup an exception should be thrown and it should have a good message.
 void testBlanketApproverNotInitiator()
          When a user is in the blanket approve workgroup but the user is not the initiator an exception should be thrown.
 void testBlanketApproveSequential()
           
 void testBlanketApproveSequentialErrors()
           
 void testBlanketApproveThroughRoleAndWorkgroup()
          Tests the behavior of blanket approve through a role node and then through a node with a Workgroup including the individual(s) in the role.
 void testBlanketApproveToAcknowledge()
           
 void testBlanketApproveToJoin()
           
 void testBlanketApproveToMultipleNodes()
           
 void testBlanketApproveToMultipleNodesErrors()
           
 
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
 

Constructor Detail

BlanketApproveTest

public BlanketApproveTest()
Method Detail

loadTestData

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

testBlanketApproverNotInBlanketApproverWorkgroup

public void testBlanketApproverNotInBlanketApproverWorkgroup()
                                                      throws Exception
When a user is not in the blanket approver workgroup an exception should be thrown and it should have a good message.

Throws:
Exception

testBlanketApproverNotInitiator

public void testBlanketApproverNotInitiator()
                                     throws Exception
When a user is in the blanket approve workgroup but the user is not the initiator an exception should be thrown.

Throws:
Exception

testBlanketApproveSequential

public void testBlanketApproveSequential()
                                  throws Exception
Throws:
Exception

testBlanketApproveSequentialErrors

public void testBlanketApproveSequentialErrors()
                                        throws Exception
Throws:
Exception

testBlanketApproveParallel

public void testBlanketApproveParallel()
                                throws Exception
Throws:
Exception

testBlanketApproveIntoBranch

public void testBlanketApproveIntoBranch()
                                  throws Exception
Throws:
Exception

testBlanketApproveToMultipleNodes

public void testBlanketApproveToMultipleNodes()
                                       throws Exception
Throws:
Exception

testBlanketApproveToJoin

public void testBlanketApproveToJoin()
                              throws Exception
Throws:
Exception

testBlanketApproveToAcknowledge

public void testBlanketApproveToAcknowledge()
                                     throws Exception
Throws:
Exception

testBlanketApproveToMultipleNodesErrors

public void testBlanketApproveToMultipleNodesErrors()
                                             throws Exception
Throws:
Exception

testBlanketApproveNotification

public void testBlanketApproveNotification()
                                    throws Exception
Tests that the notifications are generated properly on a blanket approve. Works against the "NotificationTest" document type.

Throws:
Exception

testBlanketApprovePastMandatoryNode

public void testBlanketApprovePastMandatoryNode()
                                         throws Exception
Tests that we can blanket approve past mandatory route nodes. Addresses issue http://fms.dfa.cornell.edu:8080/browse/KULWF-461

Throws:
Exception

testBlanketApproveThroughRoleAndWorkgroup

public void testBlanketApproveThroughRoleAndWorkgroup()
                                               throws Exception
Tests the behavior of blanket approve through a role node and then through a node with a Workgroup including the individual(s) in the role. Verifies that the Action List contains the proper entries in this case.

Throws:
Exception


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