Class VootErrorsTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
edu.internet2.middleware.grouper.testing.GrouperTestBase
edu.internet2.middleware.grouper.helper.GrouperTest
edu.internet2.middleware.grouperVoot.VootTest
edu.internet2.middleware.grouperVoot.VootErrorsTest
- All Implemented Interfaces:
junit.framework.Test
Class to test the parameter passing to main service logic for the VOOT connector for Grouper.
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouperVoot.VootTest
GROUP_DESCRIPTIONS, GROUP_NAMES
Fields inherited from class edu.internet2.middleware.grouper.helper.GrouperTest
testing
Fields inherited from class edu.internet2.middleware.grouper.testing.GrouperTestBase
G, NS
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor to initialize VOOT test cases.VootErrorsTest
(String name) Constructor with a test name as parameter. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Method to create a registry with all the required users and groups to test all VOOT calls with this test suite.static void
Main method to execute all tests.void
Method that logs in with Subject0 and calls the URL: /groups/@me?sortBy=wrongfield Note: running this will delete all data in the registry!void
Method that logs in with Subject0 and calls the URL: /groups/wronguser Note: running this will delete all data in the registry!void
Method that logs in with Subject0 and calls the URL: /people/@me Note: running this will delete all data in the registry!void
Method that logs in with Subject0 and calls the URL: /people Note: running this will delete all data in the registry!void
Method that logs in with Subject0 and calls the URL: /people/@me/wronggroup Note: running this will delete all data in the registry!void
Method that logs in with Subject0 and calls the URL: /people/wronguser Note: running this will delete all data in the registry!void
Method that logs in with Subject0 and calls the URL: /wrongurl Note: running this will delete all data in the registry!void
Method that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?orderBy=wrongfield Note: running this will delete all data in the registry!Methods inherited from class edu.internet2.middleware.grouperVoot.VootTest
callGroupsAPI, callGroupsAPI, callPeopleAPI, callPeopleAPI, validateError, validateGroups, validateMembers
Methods inherited from class edu.internet2.middleware.grouper.helper.GrouperTest
assertEnoughMemory, deleteAllStemsIfExists, errorInitializingTest, initGroupsAndAttributes, isTesting, runCompositeMembershipChangeLogConsumer, setUp, setupConfigs, setupConfigsPostClearCache, setupInitDb, setupTestConfigForIncludeExclude, setupTests, shutdownDelayThreadInterrupt, stemName, tearDown, tomcatRunTests, tomcatStart, tomcatStop
Methods inherited from class edu.internet2.middleware.grouper.testing.GrouperTestBase
assertContains, assertContains, assertContainsAttributeDef, assertContainsAttributeDefName, assertContainsGroup, assertContainsGroups, assertContainsStem, assertContainsStems, assertContainsString, assertContainsString, assertDoNotFindGroupByAttribute, assertDoNotFindGroupByName, assertDoNotFindGroupByName, assertDoNotFindGroupByType, assertDoNotFindGroupByType, assertDoNotFindStemByName, assertDoNotFindStemByName, 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, deleteGroupIfExists, deleteStemIfExists, filterOutBuiltInGroups, groupsString, printMemberships, stemsString, unexpectedException
Methods inherited from class junit.framework.TestCase
assertEquals, 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
-
VootErrorsTest
public VootErrorsTest()Default constructor to initialize VOOT test cases. -
VootErrorsTest
Constructor with a test name as parameter.- Parameters:
name
- the name of this test execution on the test runner.
-
-
Method Details
-
main
Main method to execute all tests.- Parameters:
args
- parameters passed to main (ignored).
-
createRegistryToTestVOOT
protected void createRegistryToTestVOOT()Method to create a registry with all the required users and groups to test all VOOT calls with this test suite.- Specified by:
createRegistryToTestVOOT
in classVootTest
-
testCallWrongBaseUrl
public void testCallWrongBaseUrl()Method that logs in with Subject0 and calls the URL: /wrongurl Note: running this will delete all data in the registry! -
testCallGroupsWrongUserUrl
public void testCallGroupsWrongUserUrl()Method that logs in with Subject0 and calls the URL: /groups/wronguser Note: running this will delete all data in the registry! -
testCallPeopleNoPeopleUrl
public void testCallPeopleNoPeopleUrl()Method that logs in with Subject0 and calls the URL: /people Note: running this will delete all data in the registry! -
testCallPeopleNoGroupUrl
public void testCallPeopleNoGroupUrl()Method that logs in with Subject0 and calls the URL: /people/@me Note: running this will delete all data in the registry! -
testCallPeopleWrongUserUrl
public void testCallPeopleWrongUserUrl()Method that logs in with Subject0 and calls the URL: /people/wronguser Note: running this will delete all data in the registry! -
testCallPeopleWrongGroupUrl
public void testCallPeopleWrongGroupUrl()Method that logs in with Subject0 and calls the URL: /people/@me/wronggroup Note: running this will delete all data in the registry! -
testCallGroupsWrongSortByParam
public void testCallGroupsWrongSortByParam()Method that logs in with Subject0 and calls the URL: /groups/@me?sortBy=wrongfield Note: running this will delete all data in the registry! -
testSortPeopleByDisplayName
public void testSortPeopleByDisplayName()Method that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?orderBy=wrongfield Note: running this will delete all data in the registry!
-