org.kuali.rice.kew.actions
Class RecallActionTest
java.lang.Object
   org.kuali.rice.test.BaseRiceTestCase
org.kuali.rice.test.BaseRiceTestCase
       org.kuali.rice.test.RiceTestCase
org.kuali.rice.test.RiceTestCase
           org.kuali.rice.test.RiceInternalSuiteDataTestCase
org.kuali.rice.test.RiceInternalSuiteDataTestCase
               org.kuali.rice.test.BaseModuleTestCase
org.kuali.rice.test.BaseModuleTestCase
                   org.kuali.rice.test.BaselineTestCase
org.kuali.rice.test.BaselineTestCase
                       org.kuali.rice.kew.test.KEWTestCase
org.kuali.rice.kew.test.KEWTestCase
                           org.kuali.rice.kew.actions.RecallActionTest
org.kuali.rice.kew.actions.RecallActionTest
- All Implemented Interfaces: 
- MethodAware
- public class RecallActionTest 
- extends KEWTestCase
 
 
 
 
 
 
 
 
 
| Method Summary | 
| protected  void | assertAfterActionTakenCalled(ActionType performed,
                                                         ActionType taken)
 | 
| protected  void | assignRecallPermissionToDocumentRouters()
 | 
| protected  void | assignRoutePermissionToTechAdmin()
 | 
| protected  void | assignUserQualifiedRole(String principalId,
                                               Role role,
                                               String roleQualifierName,
                                               String roleQualifierValue)Assigns user to role with single qualification
 | 
| protected  Permission | createPermissionForTemplate(String template_ns,
                                                       String template_name,
                                                       String permission_ns,
                                                       String permission_name,
                                                       String docType,
                                                       String appDocStatus,
                                                       String routeNode,
                                                       String routeStatus)
 | 
| protected  Permission | createRecallPermission(String docType,
                                             String appDocStatus,
                                             String routeNode,
                                             String routeStatus)
 | 
| protected  Role | createRoleWithRecallPermission(String ns,
                                                             String name,
                                                             Permission recallPerm,
                                                             String roleQualifierName)Creates a new role with recall permission qualified with doc type and custom app doc status
 | 
| protected  Permission | createRouteDocumentPermission(String docType,
                                                           String appDocStatus,
                                                           String routeNode,
                                                           String routeStatus)
 | 
| protected  void | disableInitiatorRecallPermission()
 | 
| protected  String | getKimPriorityOnDocumentTypeParameterValue()
 | 
| protected  void | loadTestData()
 | 
| protected  void | setKimPriorityOnDocumentTypeParameterValue(String parameterValue)
 | 
| protected  void | setUpAfterDataLoad()Default implementation does nothing.
 | 
|  void | testCantRecallUnroutedDoc()
 | 
|  void | testRecallAsInitiatorAfterSingleApproval()
 | 
|  void | testRecallAsInitiatorBeforeAnyApprovals()
 | 
|  void | testRecallInvalidActionsTaken()
 | 
|  void | testRecallInvalidWhenFinal()
 | 
|  void | testRecallInvalidWhenProcessed()
 | 
|  void | testRecallOnlyAdhocRouting()
 | 
|  void | testRecallPermissionAssignmentInsufficientForRouterToRecallDoc()Tests that simply assigning the recall permission to the Document Router derived role *without* assigning the
 Route Document permission to the Technical Admin role, is NOT sufficient to enable recall.
 | 
|  void | testRecallPermissionMatching()Tests that a new permission can be configured with the Recall Permission template and that matching works correctly
 against the new permission
 | 
|  void | testRecallPermissionTemplate()
 | 
| protected  void | testRecallToActionListAfterApprovals(String initiator,
                                                                         String recaller,
                                                                         String doctype)
 | 
| protected  void | testRecallToActionListAfterApprovals(String initiator,
                                                                         String recaller,
                                                                         String doctype,
                                                                         boolean expect_recall_success)
 | 
|  void | testRecallToActionListAsInitiatorAfterApprovals()
 | 
| protected  void | testRecallToActionListAsInitiatorAfterApprovals(String doctype)
 | 
|  void | testRecallToActionListAsInitiatorBeforeAnyApprovals()
 | 
|  void | testRecallToActionListAsInitiatorWithNotificationAfterApprovals()
 | 
|  void | testRecallToActionListAsInitiatorWithoutPendingNotificationAfterApprovals()
 | 
|  void | testRecallToActionListAsInitiatorWithThirdPartyNotificationAfterApprovals()
 | 
|  void | testRecallToActionListAsRouterDerivedRole()Tests that we can use the Route Document derived role to assign Recall permission to document routers.
 | 
|  void | testRecallToActionListAsThirdParty()Tests that the document is returned to the *recaller*'s action list, not the original initiator
 | 
|  void | testRecallValidActionsTaken()
 | 
|  void | testRecallWithCustomDocumentTypeAuthorizer()Tests that an application can customize document type routing authorization via documenttypeauthorizer
 | 
|  void | testRoutePermissionAssignmentInsufficientForRouterToRecallDoc()Tests that simply assigning the Route Document permission to the Technical Admin role *without* assigning the
 Recall permission to the Document Router derived role, is NOT sufficient to enable recall.
 | 
 
| 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 | 
 
 
 
 
| 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 java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
RecallActionTest
public RecallActionTest()
loadTestData
protected void loadTestData()
                     throws Exception
- 
- Overrides:
- loadTestDatain 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:
- setUpAfterDataLoadin class- KEWTestCase
 
- 
- Throws:
- Exception
 
assertAfterActionTakenCalled
protected void assertAfterActionTakenCalled(ActionType performed,
                                            ActionType taken)
- 
 
testCantRecallUnroutedDoc
public void testCantRecallUnroutedDoc()
- 
 
testRecallAsInitiatorBeforeAnyApprovals
public void testRecallAsInitiatorBeforeAnyApprovals()
                                             throws Exception
- 
- Throws:
- Exception
 
testRecallValidActionsTaken
public void testRecallValidActionsTaken()
                                 throws Exception
- 
- Throws:
- Exception
 
testRecallInvalidActionsTaken
public void testRecallInvalidActionsTaken()
                                   throws Exception
- 
- Throws:
- Exception
 
testRecallOnlyAdhocRouting
public void testRecallOnlyAdhocRouting()
                                throws Exception
- 
- Throws:
- Exception
 
testRecallAsInitiatorAfterSingleApproval
public void testRecallAsInitiatorAfterSingleApproval()
                                              throws Exception
- 
- Throws:
- Exception
 
testRecallInvalidWhenProcessed
public void testRecallInvalidWhenProcessed()
                                    throws Exception
- 
- Throws:
- Exception
 
testRecallInvalidWhenFinal
public void testRecallInvalidWhenFinal()
                                throws Exception
- 
- Throws:
- Exception
 
testRecallToActionListAsInitiatorBeforeAnyApprovals
public void testRecallToActionListAsInitiatorBeforeAnyApprovals()
                                                         throws Exception
- 
- Throws:
- Exception
 
createRecallPermission
protected Permission createRecallPermission(String docType,
                                            String appDocStatus,
                                            String routeNode,
                                            String routeStatus)
- 
 
createRouteDocumentPermission
protected Permission createRouteDocumentPermission(String docType,
                                                   String appDocStatus,
                                                   String routeNode,
                                                   String routeStatus)
- 
 
createPermissionForTemplate
protected Permission createPermissionForTemplate(String template_ns,
                                                 String template_name,
                                                 String permission_ns,
                                                 String permission_name,
                                                 String docType,
                                                 String appDocStatus,
                                                 String routeNode,
                                                 String routeStatus)
- 
 
disableInitiatorRecallPermission
protected void disableInitiatorRecallPermission()
- 
 
setKimPriorityOnDocumentTypeParameterValue
protected void setKimPriorityOnDocumentTypeParameterValue(String parameterValue)
- 
 
getKimPriorityOnDocumentTypeParameterValue
protected String getKimPriorityOnDocumentTypeParameterValue()
- 
 
testRecallPermissionMatching
public void testRecallPermissionMatching()
- Tests that a new permission can be configured with the Recall Permission template and that matching works correctly
 against the new permission
 
- 
 
testRecallPermissionTemplate
public void testRecallPermissionTemplate()
                                  throws Exception
- 
- Throws:
- Exception
 
testRecallToActionListAsInitiatorAfterApprovals
public void testRecallToActionListAsInitiatorAfterApprovals()
                                                     throws Exception
- 
- Throws:
- Exception
 
testRecallToActionListAsInitiatorWithNotificationAfterApprovals
public void testRecallToActionListAsInitiatorWithNotificationAfterApprovals()
                                                                     throws Exception
- 
- Throws:
- Exception
 
testRecallToActionListAsInitiatorWithoutPendingNotificationAfterApprovals
public void testRecallToActionListAsInitiatorWithoutPendingNotificationAfterApprovals()
                                                                               throws Exception
- 
- Throws:
- Exception
 
testRecallToActionListAsInitiatorWithThirdPartyNotificationAfterApprovals
public void testRecallToActionListAsInitiatorWithThirdPartyNotificationAfterApprovals()
                                                                               throws Exception
- 
- Throws:
- Exception
 
testRecallToActionListAsThirdParty
public void testRecallToActionListAsThirdParty()
                                        throws Exception
- Tests that the document is returned to the *recaller*'s action list, not the original initiator
 
- 
- Throws:
- Exception
 
assignRoutePermissionToTechAdmin
protected void assignRoutePermissionToTechAdmin()
- 
 
assignRecallPermissionToDocumentRouters
protected void assignRecallPermissionToDocumentRouters()
- 
 
testRoutePermissionAssignmentInsufficientForRouterToRecallDoc
public void testRoutePermissionAssignmentInsufficientForRouterToRecallDoc()
                                                                   throws Exception
- Tests that simply assigning the Route Document permission to the Technical Admin role *without* assigning the
 Recall permission to the Document Router derived role, is NOT sufficient to enable recall.
 
- 
- Throws:
- Exception
 
testRecallPermissionAssignmentInsufficientForRouterToRecallDoc
public void testRecallPermissionAssignmentInsufficientForRouterToRecallDoc()
                                                                    throws Exception
- Tests that simply assigning the recall permission to the Document Router derived role *without* assigning the
 Route Document permission to the Technical Admin role, is NOT sufficient to enable recall.
 
- 
- Throws:
- Exception
 
testRecallToActionListAsRouterDerivedRole
public void testRecallToActionListAsRouterDerivedRole()
                                               throws Exception
- Tests that we can use the Route Document derived role to assign Recall permission to document routers.
 
- 
- Throws:
- Exception
 
createRoleWithRecallPermission
protected Role createRoleWithRecallPermission(String ns,
                                              String name,
                                              Permission recallPerm,
                                              String roleQualifierName)
- Creates a new role with recall permission qualified with doc type and custom app doc status
 
- 
- Parameters:
- ns- role namespace
- name- role name
- recallPerm- the pre-created Recall permission
- Returns:
- the new recall-capable Role
 
assignUserQualifiedRole
protected void assignUserQualifiedRole(String principalId,
                                       Role role,
                                       String roleQualifierName,
                                       String roleQualifierValue)
- Assigns user to role with single qualification
 
- 
- Parameters:
- principalId- the principal to assign to role
- role- the role object
- roleQualifierName- the role qualifier name
- roleQualifierValue- the role qualifier value
 
testRecallWithCustomDocumentTypeAuthorizer
public void testRecallWithCustomDocumentTypeAuthorizer()
                                                throws Exception
- Tests that an application can customize document type routing authorization via documenttypeauthorizer
 
- 
- Throws:
- Exception
 
testRecallToActionListAsInitiatorAfterApprovals
protected void testRecallToActionListAsInitiatorAfterApprovals(String doctype)
- 
 
testRecallToActionListAfterApprovals
protected void testRecallToActionListAfterApprovals(String initiator,
                                                    String recaller,
                                                    String doctype)
- 
 
testRecallToActionListAfterApprovals
protected void testRecallToActionListAfterApprovals(String initiator,
                                                    String recaller,
                                                    String doctype,
                                                    boolean expect_recall_success)
- 
 
Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.