org.kuali.rice.kew.actionitem
Class ActionItemServiceTest

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

public class ActionItemServiceTest
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
 
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
ActionItemServiceTest()
           
 
Method Summary
protected  Group getGroup(String groupId)
          Executes a deep copy of the BaseWorkgroup
protected  void loadTestData()
           
protected  void setUpAfterDataLoad()
          Default implementation does nothing.
 void testMultipleActionItemGeneration()
          This test verifies that if someone gets more than one request routed to them then they will get multiple Action Items but only one of them will show up in their Action List.
 void testOrphanedAcknowledgeFromBlanketApprovalFix()
          This tests verifies that bug KULWF-507 has been fixed: https://test.kuali.org/jira/browse/KULWF-507 To fix this, we implemented the system so that multiple action items are generated rather then just one which gets reassigned across multiple requests as needed.
 void testUpdateActionItemsForNestedGroupChange()
          When workgroup membership changes all action items to that workgroup need to reflect the new membership even in the case of nested workgroups.
 void testUpdateActionItemsForWorkgroupChange()
          When workgroup membership changes all action items to that workgroup need to reflect the new membership
 void testWorkgroupActionItemGenerationWhenMultipleWorkgroupRequests()
          addresses the following bug http://fms.dfa.cornell.edu:8080/browse/KULWF-428
 
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
 
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

ActionItemServiceTest

public ActionItemServiceTest()
Method Detail

loadTestData

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

setUpAfterDataLoad

protected void setUpAfterDataLoad()
                           throws Exception
Description copied from class: KEWTestCase
Default implementation does nothing. Subclasses should override this method if they want to perform setup work inside of a database transaction.

Overrides:
setUpAfterDataLoad in class KEWTestCase
Throws:
Exception

testUpdateActionItemsForWorkgroupChange

public void testUpdateActionItemsForWorkgroupChange()
                                             throws Exception
When workgroup membership changes all action items to that workgroup need to reflect the new membership

Throws:
Exception

testUpdateActionItemsForNestedGroupChange

public void testUpdateActionItemsForNestedGroupChange()
                                               throws Exception
When workgroup membership changes all action items to that workgroup need to reflect the new membership even in the case of nested workgroups.

Throws:
Exception

testWorkgroupActionItemGenerationWhenMultipleWorkgroupRequests

public void testWorkgroupActionItemGenerationWhenMultipleWorkgroupRequests()
                                                                    throws Exception
addresses the following bug http://fms.dfa.cornell.edu:8080/browse/KULWF-428

Throws:
Exception

testMultipleActionItemGeneration

public void testMultipleActionItemGeneration()
                                      throws Exception
This test verifies that if someone gets more than one request routed to them then they will get multiple Action Items but only one of them will show up in their Action List.

Throws:
Exception

testOrphanedAcknowledgeFromBlanketApprovalFix

public void testOrphanedAcknowledgeFromBlanketApprovalFix()
                                                   throws Exception
This tests verifies that bug KULWF-507 has been fixed: https://test.kuali.org/jira/browse/KULWF-507 To fix this, we implemented the system so that multiple action items are generated rather then just one which gets reassigned across multiple requests as needed. This test verifies that after the blanket approval, there should no longer be an orphaned Acknowledge request. The workgroup used here is the TestWorkgroup and "user1" is ewestfal with "user2" as rkirkend. The routing is configured in the BAOrphanedRequestDocumentType.

Throws:
Exception

getGroup

protected Group getGroup(String groupId)
Executes a deep copy of the BaseWorkgroup



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