public class GroupsResourceTest extends RestCrowdServiceAcceptanceTestCase
ADMIN_PASSWORD, ADMIN_USERNAME, APPLICATION_PASSWORD, ATTRIBUTES_RESOURCE, AUTHENTICATION_RESOURCE, EEEEP_PASSWORD, EEEEP_USERNAME, EVENTS_RESOURCE, GROUP_BADGERS, GROUP_BADGERS_DESCRIPTION, GROUP_CROWD_ADMINS, GROUP_CROWD_TESTERS, GROUP_CROWD_USERS, GROUPS_RESOURCE, MT, NON_ADMIN_USER_NAME, NON_ADMIN_USER_PASSWORD, NON_CROWD_USER_PASSWORD, NON_CROWD_USER_USERNAME, NON_EXISTENT_GROUP, NON_EXISTENT_USER, PENNY_USERNAME, REST_SERVICE_NAME, restServer, SECOND_ADMIN_PASSWORD, SECOND_ADMIN_USERNAME, SESSION_RESOURCE, USERS_RESOURCE, WEBHOOKS_RESOURCE
Constructor and Description |
---|
GroupsResourceTest(String name)
Constructs a test case with the given name.
|
GroupsResourceTest(String name,
RestServer restServer)
Constructs a test case with the given name, using the given RestServer.
|
authenticateUser, authenticateUser, deactivateUser, getBaseUriBuilder, getBaseUriBuilder, getBaseUriBuilder, getRootWebResource, getServerUriBuilder, getWebResource, getWebResource, requestEvents, requestEventToken, setRestServer, setUp, tearDown
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
public GroupsResourceTest(String name)
name
- the test namepublic GroupsResourceTest(String name, RestServer restServer)
name
- the test namerestServer
- the RestServerpublic void testGetGroup()
public void testGetGroup_Expanded()
public void testGetGroup_DoesNotExist()
public void testGetGroupWithNoGroupSpecifiedReturnsA404()
public void testAddGroup()
public void testAddGroup_Unicode()
public void testUpdateGroup()
public void testUpdateGroup_BadDetails()
public void testDeleteGroup()
public void testStoreGroupAttributes()
public void testDeleteGroupAttribute()
public void testGetDirectUsers()
public void testGetDirectUsers_Limit1()
public void testGetDirectUsers_Limit2()
public void testGetDirectUsers_Expanded()
public void testGetDirectUsersReturns404WhenGroupDoesNotExist()
public void testGetDirectUsersReturns404WhenUserDoesNotExist()
public void testGetDirectUsersReturns404WhenUserAndGroupDoNotExist()
public void testGetDirectUsers_User()
public void testAddDirectUser()
public void testAddDirectUserReturns400WhenGroupNameNotSpecified()
public void testAddDirectUserReturns400WhenUserNameNotSpecified()
public void testAddDirectUser_NoUser()
public void testAddDirectUser_NoGroup()
public void testDeleteDirectUser()
public void testGetNestedUsers()
public void testGetNestedUsersReturns404WhenGroupDoNotExist()
public void testGetNestedUsers_UserReturns404WhenUserDoesNotExist()
public void testGetNestedUsers_UserReturns404WhenUserAndGroupDoNotExist()
public void testGetNestedUsers_Expanded()
public void testGetNestedUsers_User()
public void testGetNestedUsers_NoUser()
public void testGetNestedUsers_EmptyUsernameFails()
public void testGetDirectParentGroups()
public void testGetDirectParentGroups_Expanded()
public void testAddDirectParentGroup()
public void testAddDirectParentGroup_NoGroup()
public void testAddDirectParentGroup_NoParent()
public void testGetNestedParentGroups()
public void testGetNestedParentGroups_Expanded()
public void testGetNestedParentGroups_Group()
public void testGetNestedParentGroups_NoGroup()
public void testGetDirectChildGroups()
public void testGetDirectChildGroups_Expanded()
public void testAddDirectChildGroup()
public void testAddDirectChildGroup_NoGroup()
public void testAddDirectChildGroup_NoChild()
public void testAddDirectChildGroup_NoNestedGroups()
public void testGetDirectChildGroups_Group()
public void testDeleteDirectChildGroup()
public void testDeleteDirectChildGroup_NoParent()
public void testDeleteDirectChildGroup_NoChild()
public void testGetNestedChildGroups()
public void testGetNestedChildGroups_Expanded()
public void testGetMembershipsReturnsExactlyExpectedMemberships()
protected Map<String,Set<String>> getExpectedChildGroupToUsersMappingForMembershipTest()
protected Map<String,Set<String>> getExpectedGroupToUsersMappingForMembershipTest()
public void testGetMembershipsDoesNotReturnJson()
public void testMembershipsResponseIncludesEntityTag()
public void testMembershipsAcceptsConditionalRequest()
Copyright © 2021 Atlassian. All rights reserved.