|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.atlassian.jira.functest.framework.FuncTestCase
com.atlassian.jira.webtests.ztests.bundledplugins2.rest.RestFuncTest
public abstract class RestFuncTest
Base class for REST func tests.
Field Summary |
---|
Fields inherited from class com.atlassian.jira.functest.framework.FuncTestCase |
---|
administration, assertions, backdoor, environmentData, form, funcTestHelperFactory, issueTableAssertions, locator, log, navigation, oldway_consider_porting, page, parse, tester, text |
Constructor Summary | |
---|---|
protected |
RestFuncTest()
Creates a new RestFuncTest. |
Method Summary | |
---|---|
protected void |
assertEqualDateStrings(String expected,
String actual)
|
com.meterware.httpunit.WebResponse |
DELETE(String url)
|
com.meterware.httpunit.WebResponse |
GET(String url)
|
com.meterware.httpunit.WebResponse |
GET(String url,
Map<String,String> headers)
|
protected URI |
getBaseUriPlus(Iterable<String> paths)
|
protected URI |
getBaseUriPlus(String... paths)
|
protected String |
getBaseUrl()
|
protected String |
getBaseUrlPlus(Iterable<String> paths)
|
protected String |
getBaseUrlPlus(String... paths)
|
JSONObject |
getJSON(String url,
String... expand)
|
protected URI |
getRestApiUri(Iterable<String> paths)
|
protected URI |
getRestApiUri(String... paths)
|
protected String |
getRestApiUrl(String... paths)
|
protected boolean |
isDumpHTML()
|
com.meterware.httpunit.WebResponse |
POST(String url,
JSONObject json)
|
com.meterware.httpunit.WebResponse |
POST(String url,
String postBody)
|
com.meterware.httpunit.WebResponse |
PUT(String url,
JSONObject json)
|
com.meterware.httpunit.WebResponse |
PUT(String url,
String postBody)
|
protected void |
setUpHttpUnitOptions()
Override this to set up any HttpUnitOptions that must be set before the WebTester is instantiated. |
protected void |
setUpTest()
Setup for an actual test |
protected void |
tearDownTest()
individual test tear down |
Methods inherited from class com.atlassian.jira.functest.framework.FuncTestCase |
---|
builtInCustomFieldKey, getAssertions, getEnvironmentData, getTester, getWebClientListener, log, log, runBare, runTest, setEnvironmentData, setUp, shouldSkipSetup, tearDown, xpath |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected RestFuncTest()
Method Detail |
---|
protected String getBaseUrl()
protected String getBaseUrlPlus(String... paths)
protected String getBaseUrlPlus(Iterable<String> paths)
protected URI getBaseUriPlus(Iterable<String> paths)
protected URI getBaseUriPlus(String... paths)
protected String getRestApiUrl(String... paths)
protected URI getRestApiUri(String... paths)
protected URI getRestApiUri(Iterable<String> paths)
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
protected void setUpTest()
FuncTestCase
setUpTest
in class FuncTestCase
protected void setUpHttpUnitOptions()
FuncTestCase
HttpUnitOptions
that must be set before the WebTester
is instantiated.
setUpHttpUnitOptions
in class FuncTestCase
protected void tearDownTest()
FuncTestCase
tearDownTest
in class FuncTestCase
protected void assertEqualDateStrings(String expected, String actual)
protected boolean isDumpHTML()
isDumpHTML
in class FuncTestCase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |