public class PeopleFlowRoutingTest extends KEWTestCase
KEWTestCase.BootstrapTest, KEWTestCase.ClearCacheLifecycle
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
dirty
LOG, moduleName
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
log, method
Constructor and Description |
---|
PeopleFlowRoutingTest() |
clearCacheManagers, getGroupIdForName, getLoadApplicationLifecycle, getNextSequenceLongValue, getNextSequenceStringValue, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getPrincipalIdForName, getPrincipalNameForId, getRoleIdForName, getSuiteLifecycles, getTransactionTemplate, loadDefaultTestData, loadPerTestData, loadSuiteTestData, loadXmlFile, loadXmlFile, loadXmlFileFromFileSystem, loadXmlStream, setUpAfterDataLoad
getClearDbPerTestLifecycles, getMode, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles, setUp
getModuleName
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
configureLogging, dumpMemory, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
getName, getPerTestDataLoaderLifecycle, getTestMethod, resetLogLevels, setLogLevel, setName, setTestMethod
public PeopleFlowRoutingTest()
protected void loadTestData() throws Exception
loadTestData
in class KEWTestCase
Exception
public void setupServiceUnderTest()
protected void setPeopleFlowService(PeopleFlowService peopleFlowService)
protected PeopleFlowService getPeopleFlowService()
public void test_SinglePeopleFlow_Parallel_Approve() throws Exception
Exception
public void test_SinglePeopleFlow_Sequential_Approve() throws Exception
Exception
public void test_SinglePeopleFlow_PriorityParallel_Approve() throws Exception
Exception
public void test_SinglePeopleFlow_forceActionTrue() throws Exception
Simple PeopleFlow with the same member at 2 stops -
Priority 1: -> user1 Priority 2: -> user2 Priority3: -> user1 (forceAction = true)
Exception
public void test_SinglePeopleFlow_forceActionFalse() throws Exception
Simple PeopleFlow with the same member at 2 stops -
Priority 1: -> user1 Priority 2: -> user2 Priority3: -> user1 (forceAction = false)
Exception
public void test_MultiplePeopleFlow_PriorityParallel() throws Exception
Exception
public void test_PrincipalMember_roleDelegate() throws Exception
Priority 1: -> testuser3 ----> ppfTestRole2 - primary delegatethis test will ensure that the delegate, a role, is properly delegated to when the primary responsible party is a principal.
Exception
public void test_RoleMember_principalDelegate() throws Exception
Priority 1: -> ppfTestRole2 ----> testuser3 - primary delegateensure that the delegate, a principal, gets the requests when the member is a role
Exception
public void test_RoleDelegate_justKimDelegate() throws Exception
Priority 1: -> ppfTestRole1 (has delegate ewestfal defined in KIM)The desired behavior is that the KIM delegate gets requests
Exception
public void test_RoleDelegate_primaryDelegateRole() throws Exception
Priority 1: -> ppfTestRole1 (has delegate ewestfal defined in KIM) ----> ppfTestRole2 - primary delegateThe desired behavior is that the delegate defined in the PeopleFlow gets the requests, overriding the KIM delegate which gets ignored. Since the delegation type is 'primary', only ppfTestRole2's member gets requests.
Exception
public void test_RoleDelegate_secondaryDelegateRole() throws Exception
Priority 1: -> ppfTestRole1 (has delegate ewestfal defined in KIM) ----> ppfTestRole2 - secondary delegateThe desired behavior is that the delegate defined in the PeopleFlow gets the requests, overriding the KIM delegate which gets ignored. Since the delegation type is 'secondary', both ppfTestRole1 and ppfTestRole2 get requests.
Exception
public void test_RoleDelegate_delegateRoleHasKimDelegate() throws Exception
Priority 1: -> ppfTestRole2 ----> ppfTestRole1 - primary delegate (+ has delegate ewestfal defined in KIM)KEW is limited to only one level of delegation, so the behavior will be to respect the delegate defined in the PeopleFlow, but ignore the KIM delegate otherwise we'd have to add support for multi-level delegation. Since the PeopleFlow delegation is 'primary', ppfTestRole1 will get the requests.
Exception
public void test_RoleDelegate_RoleMemberWithMultiplePrincipals_AllApprove() throws Exception
Priority 1: -> ppfTestRole3 ----> ppfTestRole4 - primary delegatethis test will ensure that approvals work as expected when a role delegates to a role and both have the action request policy ALL
Exception
public void test_RoleDelegate_RoleMemberWithMultiplePrincipals_FirstApprove() throws Exception
Priority 1: -> ppfTestRole3 ----> ppfTestRole4 - primary delegateThe action request policy for each role is set to FIRST. this test will verify that when one delegate approves, the document goes final.
Exception
public void test_RoleDelegate_RoleMemberWithMultiplePrincipals_DelegateFirstApprove() throws Exception
Priority 1: -> ppfTestRole3 ----> ppfTestRole4 - primary delegatethis test will ensure that the delegate, a role is properly delegated to when the member is a principal
Exception
public void test_GroupDelegate_RoleMemberWithMultiplePrincipals_AllApprove() throws Exception
Priority 1: -> ppfTestGroup1 ----> ppfTestRole4 - primary delegatethis test will verify that groups can delegate to roles, and that the ALL approval logic will hold for the delegate
Exception
public void test_DelegatePeopleFlow_PriorityParallel_Approve() throws Exception
Exception
public void test_FirstApproveRolePeopleFlow() throws Exception
Exception
public void test_AllApproveRolePeopleFlow() throws Exception
Exception
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.