Class ApplicationLinksControl
- java.lang.Object
-
- com.atlassian.bamboo.testutils.backdoor.BackdoorControl<ApplicationLinksControl>
-
- com.atlassian.bamboo.testutils.backdoor.ApplicationLinksControl
-
public class ApplicationLinksControl extends BackdoorControl<ApplicationLinksControl>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
-
-
Constructor Summary
Constructors Constructor Description ApplicationLinksControl(BambooEnvironmentData environmentData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
addApplicationLink(String type, String name, String url)
protected com.sun.jersey.api.client.WebResource
createResource()
Creates the resource that corresponds to the root of the TestKit REST API, using the values returned byBackdoorControl.getRestModulePath()
.-
Methods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
client, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot, tearDown
-
-
-
-
Constructor Detail
-
ApplicationLinksControl
public ApplicationLinksControl(BambooEnvironmentData environmentData)
-
-
Method Detail
-
addApplicationLink
public String addApplicationLink(String type, String name, String url) throws com.opensymphony.webwork.dispatcher.json.JSONException
- Throws:
com.opensymphony.webwork.dispatcher.json.JSONException
-
createResource
protected com.sun.jersey.api.client.WebResource createResource()
Description copied from class:BackdoorControl
Creates the resource that corresponds to the root of the TestKit REST API, using the values returned byBackdoorControl.getRestModulePath()
. Note that the createdWebResource
has the following properties:- it logs all GET/POST/etc requests made through it
- it sets the
Content-Type: application/json
by default (override withWebResource.type(javax.ws.rs.core.MediaType)
)
BackdoorControl.createResourceForPath(java.lang.String)
- Overrides:
createResource
in classBackdoorControl<ApplicationLinksControl>
- Returns:
- a WebResource for the TestKit REST API root
- See Also:
BackdoorControl.createResource()
,BackdoorControl.getRestModulePath()
-
-