public class PluginSettingsResourceTest extends RestCrowdServiceAcceptanceTestCase
Modifier and Type | Field and Description |
---|---|
protected static String |
REST_SERVICE_NAME |
protected static String |
SETTINGS_RESOURCE |
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, restServer, SECOND_ADMIN_PASSWORD, SECOND_ADMIN_USERNAME, SESSION_RESOURCE, USERNAME_PARAM, USERS_RESOURCE, WEBHOOKS_RESOURCE
Constructor and Description |
---|
PluginSettingsResourceTest(String name) |
PluginSettingsResourceTest(String name,
RestServer restServer) |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.UriBuilder |
getBaseUriBuilder()
Returns the base URI of the REST service.
|
protected com.sun.jersey.api.client.WebResource |
getRootWebResource(String userName,
String password)
Returns the "root" WebResource.
|
void |
testAdminCanUseResource() |
void |
testAnonymousCannotUseResource() |
void |
testNonAdminCannotUseResource() |
void |
testShouldHandleLists() |
void |
testShouldHandleMaps() |
authenticateUser, authenticateUser, deactivateUser, getBaseUriBuilder, getBaseUriBuilder, 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
protected static final String REST_SERVICE_NAME
protected static final String SETTINGS_RESOURCE
public PluginSettingsResourceTest(String name)
public PluginSettingsResourceTest(String name, RestServer restServer)
protected javax.ws.rs.core.UriBuilder getBaseUriBuilder()
RestCrowdServiceAcceptanceTestCase
getBaseUriBuilder
in class RestCrowdServiceAcceptanceTestCase
protected com.sun.jersey.api.client.WebResource getRootWebResource(String userName, String password)
getRootWebResource
in class RestCrowdServiceAcceptanceTestCase
userName
- name of the userpassword
- password of the userpublic void testAnonymousCannotUseResource()
public void testNonAdminCannotUseResource()
public void testAdminCanUseResource()
Copyright © 2020 Atlassian. All rights reserved.