Class VootParamsLogicTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
edu.internet2.middleware.grouper.helper.GrouperTest
edu.internet2.middleware.grouperVoot.VootTest
edu.internet2.middleware.grouperVoot.VootParamsLogicTest
- All Implemented Interfaces:
- junit.framework.Test
Class to test the parameter passing to main service logic for the VOOT connector for Grouper.
- 
Field SummaryFields inherited from class edu.internet2.middleware.grouperVoot.VootTestGROUP_DESCRIPTIONS, GROUP_NAMESFields inherited from class edu.internet2.middleware.grouper.helper.GrouperTesttesting
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructor to initialize VOOT test cases.VootParamsLogicTest(String name) Constructor with a test name as parameter.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidMethod to create a registry with all the required users and groups to test all VOOT calls with this test suite.static voidMain method to execute all tests.protected voidvoidMethod that logs in with Subject0 and calls the URL: /groups/@me?startIndex=0&count=5 Note: running this will delete all data in the registry!voidMethod that logs in with Subject0 and calls the URL: /groups/@me?startIndex=10&count=5 Note: running this will delete all data in the registry!voidMethod that logs in with Subject0 and calls the URL: /groups/@me?startIndex=5&count=5 Note: running this will delete all data in the registry!voidMethod that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?startIndex=0&count=4 Note: running this will delete all data in the registry!voidMethod that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?startIndex=8&count=4 Note: running this will delete all data in the registry!voidMethod that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?startIndex=4&count=4 Note: running this will delete all data in the registry!voidMethod that logs in with Subject0 and calls the URL: /groups?search= Note: running this will delete all data in the registry!voidMethod that logs in with Subject0 and calls the URL: /groups?search=unexistent:group Note: running this will delete all data in the registry!voidMethod that logs in with Subject0 and calls the URL: /groups?search=testVoot:group1 Note: running this will delete all data in the registry!voidMethod that logs in with Subject0 and calls the URL: /groups/@me?orderBy=description Note: running this will delete all data in the registry!voidMethod that logs in with Subject0 and calls the URL: /groups/@me?orderBy=id Note: running this will delete all data in the registry!voidMethod that logs in with Subject0 and calls the URL: /groups/@me?orderBy=name Note: running this will delete all data in the registry!voidMethod that logs in with Subject1 and calls the URL: /groups/@me?orderBy=voot_membershib_role Note: running this will delete all data in the registry!voidMethod that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?orderBy=displayName Note: running this will delete all data in the registry!voidMethod that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?orderBy=id Note: running this will delete all data in the registry!voidMethod that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?orderBy=voot_membership_role Note: running this will delete all data in the registry!Methods inherited from class edu.internet2.middleware.grouperVoot.VootTestcallGroupsAPI, callGroupsAPI, callPeopleAPI, callPeopleAPI, validateError, validateGroups, validateMembersMethods inherited from class edu.internet2.middleware.grouper.helper.GrouperTestassertContains, assertContains, assertContainsAttributeDef, assertContainsAttributeDefName, assertContainsGroup, assertContainsGroups, assertContainsStem, assertContainsStems, assertContainsString, assertContainsString, assertDoNotFindGroupByAttribute, assertDoNotFindGroupByName, assertDoNotFindGroupByName, assertDoNotFindGroupByType, assertDoNotFindGroupByType, assertDoNotFindStemByName, assertDoNotFindStemByName, assertEnoughMemory, assertEquals, assertEquals, assertEqualsMultiKey, assertEqualsMultiKey, assertEqualsObjectArrays, assertEqualsObjectArrays, assertFindField, assertFindGroupByAttribute, assertFindGroupByName, assertFindGroupByName, assertFindGroupByType, assertFindGroupByType, assertFindGroupType, assertFindStemByName, assertFindStemByName, assertGroupAttribute, assertGroupCreateSubject, assertGroupCreateTime, assertGroupDescription, assertGroupDisplayExtension, assertGroupDisplayName, assertGroupExtension, assertGroupHasAdmin, assertGroupHasGroupAttrRead, assertGroupHasGroupAttrUpdate, assertGroupHasMember, assertGroupHasMember, assertGroupHasOptin, assertGroupHasOptout, assertGroupHasRead, assertGroupHasType, assertGroupHasUpdate, assertGroupHasView, assertGroupName, assertGroupSetsAndOrder, assertGroupUuid, assertHasPrivilege, assertHasPrivilege, assertHasPrivilege, assertNotContainsAttributeDef, assertNotContainsAttributeDefName, assertNotContainsGroup, assertNotContainsStem, assertStemCreateSubject, assertStemCreateTime, assertStemDescription, assertStemDisplayExtension, assertStemDisplayName, assertStemExtension, assertStemHasCreate, assertStemHasStem, assertStemName, assertStemUuid, deleteAllStemsIfExists, deleteGroupIfExists, deleteStemIfExists, errorInitializingTest, filterOutBuiltInGroups, groupsString, initGroupsAndAttributes, isTesting, printMemberships, setUp, setupConfigsPostClearCache, setupInitDb, setupTestConfigForIncludeExclude, setupTests, stemName, stemsString, tearDown, tomcatRunTests, tomcatStart, tomcatStop, unexpectedExceptionMethods inherited from class junit.framework.TestCaseassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
- 
Constructor Details- 
VootParamsLogicTestpublic VootParamsLogicTest()Default constructor to initialize VOOT test cases.
- 
VootParamsLogicTestConstructor with a test name as parameter.- Parameters:
- name- the name of this test execution on the test runner.
 
 
- 
- 
Method Details- 
mainMain method to execute all tests.- Parameters:
- args- parameters passed to main (ignored).
 
- 
setupConfigsprotected void setupConfigs()- Overrides:
- setupConfigsin class- GrouperTest
 
- 
createRegistryToTestVOOTprotected void createRegistryToTestVOOT()Method to create a registry with all the required users and groups to test all VOOT calls with this test suite. These tests have to prove pagination and sorting, so a significant number of groups were required. We create then 12 groups where:- Group 0: is a group containing 10 subjects (to test pagination on group members)
- Group 1 to Group 11: are groups where Subject0 is member
 - Specified by:
- createRegistryToTestVOOTin class- VootTest
 
- 
testPaginateGroupsFirstPagepublic void testPaginateGroupsFirstPage()Method that logs in with Subject0 and calls the URL: /groups/@me?startIndex=0&count=5 Note: running this will delete all data in the registry!
- 
testPaginateGroupsSecondPagepublic void testPaginateGroupsSecondPage()Method that logs in with Subject0 and calls the URL: /groups/@me?startIndex=5&count=5 Note: running this will delete all data in the registry!
- 
testPaginateGroupsLastPagepublic void testPaginateGroupsLastPage()Method that logs in with Subject0 and calls the URL: /groups/@me?startIndex=10&count=5 Note: running this will delete all data in the registry!
- 
testPaginatePeopleFirstPagepublic void testPaginatePeopleFirstPage()Method that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?startIndex=0&count=4 Note: running this will delete all data in the registry!
- 
testPaginatePeopleSecondPagepublic void testPaginatePeopleSecondPage()Method that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?startIndex=4&count=4 Note: running this will delete all data in the registry!
- 
testPaginatePeopleLastPagepublic void testPaginatePeopleLastPage()Method that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?startIndex=8&count=4 Note: running this will delete all data in the registry!
- 
testSortGroupsByIdpublic void testSortGroupsById()Method that logs in with Subject0 and calls the URL: /groups/@me?orderBy=id Note: running this will delete all data in the registry!
- 
testSortGroupsByNamepublic void testSortGroupsByName()Method that logs in with Subject0 and calls the URL: /groups/@me?orderBy=name Note: running this will delete all data in the registry!
- 
testSortGroupsByDescriptionpublic void testSortGroupsByDescription()Method that logs in with Subject0 and calls the URL: /groups/@me?orderBy=description Note: running this will delete all data in the registry!
- 
testSortGroupsByVootMembershipRolepublic void testSortGroupsByVootMembershipRole()Method that logs in with Subject1 and calls the URL: /groups/@me?orderBy=voot_membershib_role Note: running this will delete all data in the registry!
- 
testSortPeopleByIdpublic void testSortPeopleById()Method that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?orderBy=id Note: running this will delete all data in the registry!
- 
testSortPeopleByDisplayNamepublic void testSortPeopleByDisplayName()Method that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?orderBy=displayName Note: running this will delete all data in the registry!
- 
testSortPeopleByVootMembershipRolepublic void testSortPeopleByVootMembershipRole()Method that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?orderBy=voot_membership_role Note: running this will delete all data in the registry!
- 
testSearchGroupsWithResultspublic void testSearchGroupsWithResults()Method that logs in with Subject0 and calls the URL: /groups?search=testVoot:group1 Note: running this will delete all data in the registry!
- 
testSearchGroupsWithOutResultspublic void testSearchGroupsWithOutResults()Method that logs in with Subject0 and calls the URL: /groups?search=unexistent:group Note: running this will delete all data in the registry!
- 
testSearchAllGroupspublic void testSearchAllGroups()Method that logs in with Subject0 and calls the URL: /groups?search= Note: running this will delete all data in the registry!
 
-