org.kuali.rice.kew.server
Class WorkflowUtilityTest

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

public class WorkflowUtilityTest
extends KEWTestCase


Nested Class Summary
static interface WorkflowUtilityTest.ReportCriteriaGenerator
           
 
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
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
WorkflowUtilityTest()
           
 
Method Summary
protected  void assertActionsRequested(String principalName, String documentId)
           
protected  void loadTestData()
           
 void testDocumentWillHaveApproveOrCompleteRequestAtNode_DocumentId()
           
 void testDocumentWillHaveApproveOrCompleteRequestAtNode_ForceAction_DocumentId()
           
 void testDocumentWillHaveApproveOrCompleteRequestAtNode_ForceAction_XmlContent()
           
 void testDocumentWillHaveApproveOrCompleteRequestAtNode_XmlContent()
           
 void testGetActionItems_ActionRequestCodes()
           
 void testGetActionItems()
           
 void testGetActionsRequested()
           
 void testGetDocumentDetailByAppId()
           
 void testGetPrincipalIdsInRouteLog()
           
 void testGetSearchableAttributeDateTimeValuesByKey()
           
 void testGetUserActionItemCount()
           
 void testIsFinalApprover()
           
 void testIsFinalApproverChild()
           
 void testIsLastApprover()
           
 void testIsLastApproverActivation()
          This method tests how the isLastApproverAtNode method deals with force action requests, there is an app constant with the value specified in KewApiConstants.IS_LAST_APPROVER_ACTIVATE_FIRST which dictates whether or not to simulate activation of initialized requests before running the method.
 void testIsUserInRouteLog()
           
 void testIsUserInRouteLogAfterReturnToPrevious()
           
 void testIsUserInRouteLogWithSplits()
           
 void testPerformDocumentSearch_NoUser_BasicCriteria()
           
 void testPerformDocumentSearch_NoUser_CustomThreshold()
           
 void testPerformDocumentSearch_NoUser_RouteNodeSearch()
           
 void testPerformDocumentSearch_NoUser_SearchAttributes()
           
 void testPerformDocumentSearch_RouteNodeSpecial()
           
 void testPerformDocumentSearch_WithUser_BasicCriteria()
           
 void testPerformDocumentSearch_WithUser_CustomThreshold()
           
 void testPerformDocumentSearch_WithUser_RouteNodeSearch()
           
 void testPerformDocumentSearch_WithUser_SearchAttributes()
           
 void testRoutingReportOnDocumentId()
           
 void testRoutingReportOnDocumentType()
           
 void testRuleReportGeneralFunction()
           
 void testRuleReportOrgReviewTest()
          Tests specific rule scenario relating to standard org review routing
protected  void verifyEmptyArray(String qualifier, Object[] array)
           
protected  void verifyTimestampToSecond(Long originalTimeInMillis, Long testTimeInMillis)
           
 
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

WorkflowUtilityTest

public WorkflowUtilityTest()
Method Detail

loadTestData

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

testGetDocumentDetailByAppId

public void testGetDocumentDetailByAppId()
                                  throws WorkflowException
Throws:
WorkflowException

testGetActionsRequested

public void testGetActionsRequested()
                             throws Exception
Throws:
Exception

assertActionsRequested

protected void assertActionsRequested(String principalName,
                                      String documentId)
                               throws Exception
Throws:
Exception

testIsUserInRouteLog

public void testIsUserInRouteLog()
                          throws Exception
Throws:
Exception

testIsUserInRouteLogAfterReturnToPrevious

public void testIsUserInRouteLogAfterReturnToPrevious()
                                               throws Exception
Throws:
Exception

testIsUserInRouteLogWithSplits

public void testIsUserInRouteLogWithSplits()
                                    throws Exception
Throws:
Exception

testDocumentWillHaveApproveOrCompleteRequestAtNode_DocumentId

public void testDocumentWillHaveApproveOrCompleteRequestAtNode_DocumentId()
                                                                   throws Exception
Throws:
Exception

testDocumentWillHaveApproveOrCompleteRequestAtNode_XmlContent

public void testDocumentWillHaveApproveOrCompleteRequestAtNode_XmlContent()
                                                                   throws Exception
Throws:
Exception

testDocumentWillHaveApproveOrCompleteRequestAtNode_ForceAction_DocumentId

public void testDocumentWillHaveApproveOrCompleteRequestAtNode_ForceAction_DocumentId()
                                                                               throws Exception
Throws:
Exception

testDocumentWillHaveApproveOrCompleteRequestAtNode_ForceAction_XmlContent

public void testDocumentWillHaveApproveOrCompleteRequestAtNode_ForceAction_XmlContent()
                                                                               throws Exception
Throws:
Exception

testIsLastApprover

public void testIsLastApprover()
                        throws Exception
Throws:
Exception

testIsLastApproverActivation

public void testIsLastApproverActivation()
                                  throws Exception
This method tests how the isLastApproverAtNode method deals with force action requests, there is an app constant with the value specified in KewApiConstants.IS_LAST_APPROVER_ACTIVATE_FIRST which dictates whether or not to simulate activation of initialized requests before running the method. Tests the fix to issue http://fms.dfa.cornell.edu:8080/browse/KULWF-366

Throws:
Exception

testIsFinalApprover

public void testIsFinalApprover()
                         throws Exception
Throws:
Exception

testIsFinalApproverChild

public void testIsFinalApproverChild()
                              throws Exception
Throws:
Exception

testGetPrincipalIdsInRouteLog

public void testGetPrincipalIdsInRouteLog()
                                   throws Exception
Throws:
Exception

testRoutingReportOnDocumentType

public void testRoutingReportOnDocumentType()
                                     throws Exception
Throws:
Exception

testRoutingReportOnDocumentId

public void testRoutingReportOnDocumentId()
                                   throws Exception
Throws:
Exception

verifyEmptyArray

protected void verifyEmptyArray(String qualifier,
                                Object[] array)

testRuleReportGeneralFunction

public void testRuleReportGeneralFunction()
                                   throws Exception
Throws:
Exception

testRuleReportOrgReviewTest

public void testRuleReportOrgReviewTest()
                                 throws Exception
Tests specific rule scenario relating to standard org review routing

Throws:
Exception

testGetUserActionItemCount

public void testGetUserActionItemCount()
                                throws Exception
Throws:
Exception

testGetActionItems

public void testGetActionItems()
                        throws Exception
Throws:
Exception

testGetActionItems_ActionRequestCodes

public void testGetActionItems_ActionRequestCodes()
                                           throws Exception
Throws:
Exception

testPerformDocumentSearch_WithUser_CustomThreshold

public void testPerformDocumentSearch_WithUser_CustomThreshold()
                                                        throws Exception
Throws:
Exception

testPerformDocumentSearch_NoUser_CustomThreshold

public void testPerformDocumentSearch_NoUser_CustomThreshold()
                                                      throws Exception
Throws:
Exception

testPerformDocumentSearch_WithUser_BasicCriteria

public void testPerformDocumentSearch_WithUser_BasicCriteria()
                                                      throws Exception
Throws:
Exception

testPerformDocumentSearch_NoUser_BasicCriteria

public void testPerformDocumentSearch_NoUser_BasicCriteria()
                                                    throws Exception
Throws:
Exception

testPerformDocumentSearch_WithUser_RouteNodeSearch

public void testPerformDocumentSearch_WithUser_RouteNodeSearch()
                                                        throws Exception
Throws:
Exception

testPerformDocumentSearch_NoUser_RouteNodeSearch

public void testPerformDocumentSearch_NoUser_RouteNodeSearch()
                                                      throws Exception
Throws:
Exception

testPerformDocumentSearch_RouteNodeSpecial

public void testPerformDocumentSearch_RouteNodeSpecial()
                                                throws RemoteException,
                                                       WorkflowException
Throws:
RemoteException
WorkflowException

testPerformDocumentSearch_WithUser_SearchAttributes

public void testPerformDocumentSearch_WithUser_SearchAttributes()
                                                         throws Exception
Throws:
Exception

testPerformDocumentSearch_NoUser_SearchAttributes

public void testPerformDocumentSearch_NoUser_SearchAttributes()
                                                       throws Exception
Throws:
Exception

testGetSearchableAttributeDateTimeValuesByKey

public void testGetSearchableAttributeDateTimeValuesByKey()
                                                   throws Exception
Throws:
Exception

verifyTimestampToSecond

protected void verifyTimestampToSecond(Long originalTimeInMillis,
                                       Long testTimeInMillis)
                                throws Exception
Throws:
Exception


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