|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
com.atlassian.crowd.acceptance.tests.rest.service.client.RestCrowdClientTest
public class RestCrowdClientTest
Tests the RestCrowdClient.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase |
|---|
ADMIN_EMAIL, ADMIN_FULL_NAME, ADMIN_GROUP, ADMIN_PW, ADMIN_USER, CONSOLE_PORT, CONTEXT_PATH, DEVELOPER_LICENSE_KEY, EXPIRED_MAINTENANCE_KEY, HOST, HOST_PATH, logger, specProperties, UNLIMITED_LICENSE_KEY, URL_HOME, WAR_PATH, WORKGROUP_LICENSE_KEY |
| Fields inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase |
|---|
tester |
| Constructor Summary | |
|---|---|
RestCrowdClientTest()
|
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
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, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RestCrowdClientTest()
| Method Detail |
|---|
public void setUp()
throws java.lang.Exception
setUp in class CrowdAcceptanceTestCasejava.lang.Exception
public void testGetUser()
throws java.lang.Exception
java.lang.Exception
public void testGetGroupNameMembershipsForGroup()
throws java.lang.Exception
CrowdClient.getNamesOfParentGroupsForGroup(String, int, int) retrieves the correct parent
group names.
java.lang.Exception
public void testGetGroupNameMembershipsForGroup_InvalidStartIndex()
throws java.lang.Exception
CrowdClient.getNamesOfParentGroupsForGroup(String, int, int) with an invalid start index will
throw an OperationFailedException.
java.lang.Exception
public void testGetGroupNameMembershipsForGroup_NonExistentGroup()
throws java.lang.Exception
CrowdClient.getNamesOfParentGroupsForGroup(String, int, int) for a non-existent group returns an empty list.
java.lang.Exception
public void testGetNestedUserNameMembersOfGroup()
throws java.lang.Exception
CrowdClient.getNamesOfNestedUsersOfGroup(String, int, int) returns the correct user names
of nested members of a group.
java.lang.Exception
public void testGetNestedUserNameMembersOfGroup_NonExistentGroup()
throws java.lang.Exception
CrowdClient.getNamesOfNestedUsersOfGroup(String, int, int) returns an empty list for a
non-existent group.
java.lang.Exception
public void testGetNestedGroupMembersOfGroup()
throws java.lang.Exception
CrowdClient.getNestedChildGroupsOfGroup(String, int, int) returns the nested group members
of group.
java.lang.Exception
public void testGetNestedGroupMembersOfGroup_NonExistentGroup()
throws java.lang.Exception
CrowdClient.getNestedChildGroupsOfGroup(String, int, int) returns an empty list for a
non-existent group.
java.lang.Exception
public void testGetNestedGroupNameMembersOfGroup()
throws java.lang.Exception
CrowdClient.getNamesOfNestedChildGroupsOfGroup(String, int, int) returns the group names of
nested group members.
java.lang.Exception
public void testGetNestedGroupNameMembersOfGroup_NonExistent()
throws java.lang.Exception
CrowdClient.getNamesOfNestedChildGroupsOfGroup(String, int, int) returns an empty list for a
non-existent group.
java.lang.Exception
public void testGetNestedGroupMembershipsForUser()
throws java.lang.Exception
CrowdClient.getGroupsForNestedUser(String, int, int) returns the correct nested
group memberships for a user.
java.lang.Exception
public void testGetNestedGroupMembershipsForUser_NonExistent()
throws java.lang.Exception
CrowdClient.getGroupsForNestedUser(String, int, int) returns an empty list for a
non-existent username.
java.lang.Exception
public void testGetNestedGroupNameMembershipsForUser()
throws java.lang.Exception
CrowdClient.getNamesOfGroupsForNestedUser(String, int, int) returns the correct group
names for a nested user member
java.lang.Exception
public void testGetNestedGroupNameMembershipsForUser_NonExistent()
throws java.lang.Exception
CrowdClient.getNamesOfGroupsForNestedUser(String, int, int) returns an empty list
for a non-existent username.
java.lang.Exception
public void testGetNestedGroupMembershipsForGroup()
throws java.lang.Exception
CrowdClient.getParentGroupsForNestedGroup(String, int, int) returns the correct nested
group memberships for a group.
java.lang.Exception
public void testGetNestedGroupMembershipsForGroup_NonExistent()
throws java.lang.Exception
CrowdClient.getParentGroupsForNestedGroup(String, int, int) returns an empty list for a
non-existent group.
java.lang.Exception
public void testGetNestedGroupNameMembershipsForGroup()
throws java.lang.Exception
CrowdClient.getNamesOfParentGroupsForNestedGroup(String, int, int) returns the correct nested
group name memberships of a group.
java.lang.Exception
public void testGetNestedGroupNameMembershipsForGroup_NonExistent()
throws java.lang.Exception
CrowdClient.getNamesOfParentGroupsForNestedGroup(String, int, int) returns an empty list for
a non-existent group.
java.lang.Exception
public void testConnectToInvalidRestService()
throws java.lang.Exception
RestCrowdClient throws an OperationFailedException if the RestCrowdClient is not
communicating with a valid Crowd REST service.
java.lang.Exception
public void testConnectToRestService_WrongPassword()
throws java.lang.Exception
RestCrowdClient throws an InvalidAuthenticationException if the application password
is invalid.
java.lang.Exception
public void testGetMemberships()
throws java.lang.Exception
RestCrowdClient.getMemberships() returns successfully. The content of the response
is tested by GroupsResourceTest#testGetMembershipsReturnsExactlyExpectedMemberships in crowd-rest-test.
java.lang.Exception
public void testQueryForNullFirstNames()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||