FuncTestRestClient
instead.public class RestRule
extends org.junit.rules.ExternalResource
Constructor and Description |
---|
RestRule(BaseJiraFuncTest baseJiraFuncTest)
Deprecated.
|
RestRule(FuncTestCase testCase)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
after()
Deprecated.
|
void |
before()
Deprecated.
|
com.meterware.httpunit.WebResponse |
DELETE(String url)
Deprecated.
|
com.meterware.httpunit.WebResponse |
GET(String url)
Deprecated.
|
com.meterware.httpunit.WebResponse |
GET(String url,
Map<String,String> headers)
Deprecated.
|
URI |
getBaseUriPlus(Iterable<String> paths)
Deprecated.
|
URI |
getBaseUriPlus(String... paths)
Deprecated.
|
String |
getBaseUrl()
Deprecated.
|
String |
getBaseUrlPlus(Iterable<String> paths)
Deprecated.
|
String |
getBaseUrlPlus(String... paths)
Deprecated.
|
JSONObject |
getJSON(String url,
String... expand)
Deprecated.
|
URI |
getRestApiUri(Iterable<String> paths)
Deprecated.
|
URI |
getRestApiUri(String... paths)
Deprecated.
|
String |
getRestApiUrl(String... paths)
Deprecated.
|
com.meterware.httpunit.WebResponse |
POST(String url,
JSONObject json)
Deprecated.
|
com.meterware.httpunit.WebResponse |
POST(String url,
String postBody)
Deprecated.
|
com.meterware.httpunit.WebResponse |
PUT(String url,
JSONObject json)
Deprecated.
|
com.meterware.httpunit.WebResponse |
PUT(String url,
String postBody)
Deprecated.
|
public RestRule(FuncTestCase testCase)
public RestRule(BaseJiraFuncTest baseJiraFuncTest)
public String getBaseUrl()
public JSONObject getJSON(String url, String... expand) throws JSONException
JSONException
public com.meterware.httpunit.WebResponse GET(String url) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse GET(String url, Map<String,String> headers) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse DELETE(String url) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse POST(String url, JSONObject json) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse POST(String url, String postBody) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse PUT(String url, JSONObject json) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse PUT(String url, String postBody) throws IOException, SAXException
IOException
SAXException
public void before()
before
in class org.junit.rules.ExternalResource
public void after()
after
in class org.junit.rules.ExternalResource
Copyright © 2002-2018 Atlassian. All Rights Reserved.