org.kuali.rice.kew.rule.service.impl
Class RoleServiceTest
java.lang.Object
org.kuali.rice.test.BaseRiceTestCase
org.kuali.rice.test.RiceTestCase
org.kuali.rice.test.RiceInternalSuiteDataTestCase
org.kuali.rice.test.BaseModuleTestCase
org.kuali.rice.test.BaselineTestCase
org.kuali.rice.kew.test.KEWTestCase
org.kuali.rice.kew.rule.service.impl.RoleServiceTest
- All Implemented Interfaces:
- MethodAware
public class RoleServiceTest
- extends KEWTestCase
Tests the role re-resolving. This test depends on the route queue being synchronous.
Methods inherited from class org.kuali.rice.kew.test.KEWTestCase |
getGroupIdForName, getLoadApplicationLifecycle, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getPrincipalIdForName, getPrincipalNameForId, getSuiteLifecycles, getTransactionTemplate, loadDefaultTestData, loadPerTestData, loadSuiteTestData, loadTestData, loadXmlFile, loadXmlFile, loadXmlFileFromFileSystem, loadXmlStream |
Methods inherited from class org.kuali.rice.test.RiceTestCase |
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, 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 |
TEST_ROLE
private static final String TEST_ROLE
- See Also:
- Constant Field Values
TEST_GROUP_1
private static final String TEST_GROUP_1
- See Also:
- Constant Field Values
TEST_GROUP_2
private static final String TEST_GROUP_2
- See Also:
- Constant Field Values
roleService
private RoleService roleService
documentId
private String documentId
group1
private List<String> group1
group2
private List<String> group2
RoleServiceTest
public RoleServiceTest()
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
initializeAttribute
private void initializeAttribute()
throws Exception
- Throws:
Exception
routeDocument
private String routeDocument()
throws Exception
- Throws:
Exception
testReResolveQualifiedRole
public void testReResolveQualifiedRole()
throws Exception
- Throws:
Exception
testReResolveQualifiedRoleErrors
public void testReResolveQualifiedRoleErrors()
throws Exception
- Throws:
Exception
testReResolveRole
public void testReResolveRole()
throws Exception
- Throws:
Exception
testReResolveRoleErrors
public void testReResolveRoleErrors()
throws Exception
- Throws:
Exception
getTestRoleRequests
private List getTestRoleRequests(DocumentRouteHeaderValue document)
- Extract requests sent to TestRole.
assertRequestGraphs
private void assertRequestGraphs(List requests)
throws Exception
- Throws:
Exception
assertQualifiedRoleRequest
private void assertQualifiedRoleRequest(ActionRequestValue request,
String roleName,
String qualifiedRoleName)
throws Exception
- Throws:
Exception
assertActionRequest
private void assertActionRequest(ActionRequestValue request,
String roleName,
String qualifiedRoleName)
containsUser
private boolean containsUser(List<String> principalIds,
String principalId)
throws Exception
- Throws:
Exception
assertInitiatorRequestDone
private void assertInitiatorRequestDone(String roleName,
String qualifiedRoleNameLabel)
throws Exception
- Gets all "DONE" action requests that are to the initiator (rkirkend). It then verifies that the initiator has a
complete request and a re-resolved request.
- Throws:
Exception
generateDocContent
private TestDocContent generateDocContent()
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.