public class

FuncTestRestClient

extends Object
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.FuncTestRestClient

Class Overview

Externalised from RestFuncTest junit 3 base class. Inject this into your test class.

Summary

Public Constructors
FuncTestRestClient(WebTester tester, JIRAEnvironmentData environmentData)
Public Methods
WebResponse DELETE(String url)
WebResponse GET(String url)
WebResponse GET(String url, Map<StringString> headers)
WebResponse POST(String url, String postBody)
WebResponse POST(String url, JSONObject json)
WebResponse PUT(String url, JSONObject json)
WebResponse PUT(String url, String postBody)
JSONObject getJSON(String url, String... expand)
Protected Methods
URI getBaseUriPlus(Iterable<String> paths)
URI getBaseUriPlus(String... paths)
String getBaseUrl()
String getBaseUrlPlus(String... paths)
String getBaseUrlPlus(Iterable<String> paths)
URI getRestApiUri(String... paths)
URI getRestApiUri(Iterable<String> paths)
String getRestApiUrl(String... paths)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FuncTestRestClient (WebTester tester, JIRAEnvironmentData environmentData)

Public Methods

public WebResponse DELETE (String url)

Throws
IOException
SAXException

public WebResponse GET (String url)

Throws
IOException
SAXException

public WebResponse GET (String url, Map<StringString> headers)

Throws
IOException
SAXException

public WebResponse POST (String url, String postBody)

Throws
IOException
SAXException

public WebResponse POST (String url, JSONObject json)

Throws
IOException
SAXException

public WebResponse PUT (String url, JSONObject json)

Throws
IOException
SAXException

public WebResponse PUT (String url, String postBody)

Throws
IOException
SAXException

public JSONObject getJSON (String url, String... expand)

Throws
JSONException

Protected Methods

protected URI getBaseUriPlus (Iterable<String> paths)

protected URI getBaseUriPlus (String... paths)

protected String getBaseUrl ()

protected String getBaseUrlPlus (String... paths)

protected String getBaseUrlPlus (Iterable<String> paths)

protected URI getRestApiUri (String... paths)

protected URI getRestApiUri (Iterable<String> paths)

protected String getRestApiUrl (String... paths)