public class AliasResourceTest extends RestCrowdServiceAcceptanceTestCase
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_ID |
static String |
MISSING_APPLICATION_ID |
ADMIN_PASSWORD, ADMIN_USERNAME, APPLICATION_NAME, 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, USERNAME_PARAM, USERS_RESOURCE, WEBHOOKS_RESOURCE
Constructor and Description |
---|
AliasResourceTest(String name) |
AliasResourceTest(String name,
RestServer restServer) |
Modifier and Type | Method and Description |
---|---|
void |
testDeleteRemovesAlias() |
void |
testErrorEntityIsMarshaledProperly() |
void |
testGetAliasForAliasedUserReturnsAlias() |
void |
testGetAliasForUnaliasedUserIsNotFound() |
void |
testGetAliasForUnknownApplicationIsNotFound() |
void |
testGetAllAliasesForUserWithAliasesIncludesApplicationsWithAliases() |
void |
testGetAllAliasesForUserWithoutAliasesIsEmpty() |
void |
testGetUsernameByAliasReturnsOriginalUser() |
void |
testGetUsernameByAliasReturnsSameUsernameWhenNoAliasDefined() |
void |
testSetAliasAddsAlias() |
void |
testSetAliasModifiesExistingAlias() |
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 static final String APPLICATION_ID
public static final String MISSING_APPLICATION_ID
public AliasResourceTest(String name)
public AliasResourceTest(String name, RestServer restServer)
public void testGetAliasForAliasedUserReturnsAlias()
public void testGetAliasForUnaliasedUserIsNotFound()
public void testGetAliasForUnknownApplicationIsNotFound()
public void testSetAliasModifiesExistingAlias()
public void testSetAliasAddsAlias()
public void testDeleteRemovesAlias()
public void testGetUsernameByAliasReturnsOriginalUser()
public void testGetUsernameByAliasReturnsSameUsernameWhenNoAliasDefined()
public void testGetAllAliasesForUserWithoutAliasesIsEmpty()
public void testGetAllAliasesForUserWithAliasesIncludesApplicationsWithAliases() throws Exception
Exception
Copyright © 2019 Atlassian. All rights reserved.