public class GadgetSpecClient extends com.atlassian.jira.testkit.client.RestApiClient<GadgetSpecClient>
Note that RestApiClient
uses its own user session and does not share user sessions from other parts
of the test frameworks, such as Navigation
.
By default all HTTP requests will be made using the "admin" credentials. If a different or anonymous credential
is required, RestApiClient.loginAs(String)
can be used to facilitate such requirement.
Constructor and Description |
---|
GadgetSpecClient(com.atlassian.jira.testkit.client.JIRAEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAddableGadgets()
Make a HTTP request for all addable gadgets in the system.
|
String |
getFeedResourceContent()
Make a HTTP request to retrieve the content of gadget feed resource.
|
com.atlassian.jira.testkit.client.restclient.Response |
getGadgetSpecXML(String publishLocation)
Make a HTTP request for gadget spec XML at the specified
publishLocation |
anonymous, cleanUp, client, createResource, createResourceGadget, createResourceInternal, errorResponse, expanded, getEnvironmentData, loginAs, loginAs, percentEncode, registerResponse, resourceRoot, setOf, toResponse, toResponse, toResponse
public GadgetSpecClient(com.atlassian.jira.testkit.client.JIRAEnvironmentData environmentData)
public List<String> getAddableGadgets()
Addable gadgets refer to all gadgets that can be added/viewed by currently logged on user.
public String getFeedResourceContent()
String
content of the feed resource.public com.atlassian.jira.testkit.client.restclient.Response getGadgetSpecXML(String publishLocation)
publishLocation
publishLocation
- The URL to retrieve the gadget spec.Response
result of the HTTP request.Copyright © 2002-2021 Atlassian. All Rights Reserved.