com.atlassian.crowd.acceptance.tests.rest
Class TestHelper

java.lang.Object
  extended by com.atlassian.crowd.acceptance.tests.rest.TestHelper

public class TestHelper
extends Object


Field Summary
static String ADMIN_GROUP_NAME
           
static String DIRECTORY_PATH
           
static String FIRST_DIRECTORY_FIRST_USER_NAME
           
static String FIRST_DIRECTORY_NAME
           
static String FIRST_DIRECTORY_SECOND_GROUP_NAME
           
static String FIRST_DIRECTORY_SECOND_USER_NAME
           
static String GROUPS_PATH
           
static String SEARCH_KEY
           
static String SECOND_DIRECTORY_GROUP_NAME
           
static String SECOND_DIRECTORY_NAME
           
static String SECOND_DIRECTORY_USER_NAME
           
static String USERS_PATH
           
 
Constructor Summary
TestHelper()
           
 
Method Summary
static com.sun.jersey.api.client.WebResource getGroupPath(String directoryName, String groupName)
           
static com.sun.jersey.api.client.WebResource getGroupsPath(String directoryName)
           
static com.sun.jersey.api.client.WebResource getRootWebResource()
          Returns the "root" WebResource.
static com.sun.jersey.api.client.WebResource getRootWebResource(String username, String password)
          Returns the "root" WebResource.
static com.sun.jersey.api.client.WebResource getUserMembershipsPath(String directoryName, String userName)
           
static com.sun.jersey.api.client.WebResource getUserPath(String directoryName, String userName)
           
static com.sun.jersey.api.client.WebResource getUsersPath(String directoryName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIRECTORY_PATH

public static final String DIRECTORY_PATH
See Also:
Constant Field Values

FIRST_DIRECTORY_NAME

public static final String FIRST_DIRECTORY_NAME
See Also:
Constant Field Values

SECOND_DIRECTORY_NAME

public static final String SECOND_DIRECTORY_NAME
See Also:
Constant Field Values

SEARCH_KEY

public static final String SEARCH_KEY
See Also:
Constant Field Values

USERS_PATH

public static final String USERS_PATH
See Also:
Constant Field Values

FIRST_DIRECTORY_FIRST_USER_NAME

public static final String FIRST_DIRECTORY_FIRST_USER_NAME
See Also:
Constant Field Values

FIRST_DIRECTORY_SECOND_USER_NAME

public static final String FIRST_DIRECTORY_SECOND_USER_NAME
See Also:
Constant Field Values

SECOND_DIRECTORY_USER_NAME

public static final String SECOND_DIRECTORY_USER_NAME
See Also:
Constant Field Values

GROUPS_PATH

public static final String GROUPS_PATH
See Also:
Constant Field Values

ADMIN_GROUP_NAME

public static final String ADMIN_GROUP_NAME
See Also:
Constant Field Values

FIRST_DIRECTORY_SECOND_GROUP_NAME

public static final String FIRST_DIRECTORY_SECOND_GROUP_NAME
See Also:
Constant Field Values

SECOND_DIRECTORY_GROUP_NAME

public static final String SECOND_DIRECTORY_GROUP_NAME
See Also:
Constant Field Values
Constructor Detail

TestHelper

public TestHelper()
Method Detail

getRootWebResource

public static com.sun.jersey.api.client.WebResource getRootWebResource()
Returns the "root" WebResource. This is the resource that's at the / of the crowd-rest-admin plugin namespace.

Returns:

getRootWebResource

public static com.sun.jersey.api.client.WebResource getRootWebResource(String username,
                                                                       String password)
Returns the "root" WebResource. This is the resource that's at the / of the crowd-rest-admin plugin namespace.

Returns:

getUsersPath

public static com.sun.jersey.api.client.WebResource getUsersPath(String directoryName)

getUserPath

public static com.sun.jersey.api.client.WebResource getUserPath(String directoryName,
                                                                String userName)

getUserMembershipsPath

public static com.sun.jersey.api.client.WebResource getUserMembershipsPath(String directoryName,
                                                                           String userName)

getGroupsPath

public static com.sun.jersey.api.client.WebResource getGroupsPath(String directoryName)

getGroupPath

public static com.sun.jersey.api.client.WebResource getGroupPath(String directoryName,
                                                                 String groupName)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.