|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
net.sourceforge.jwebunit.junit.WebTestCase
com.atlassian.confluence.rest.AbstractRestAcceptanceTest
public abstract class AbstractRestAcceptanceTest
Because we don't want to be YET ANOTHER subclass of the monstrosity known as ACAT. Every time you think "Hey, I need some functionality from AbstractConfluenceAcceptanceTest", why not move it into the test-support module?
| Field Summary | |
|---|---|
protected com.sun.jersey.api.client.WebResource |
adminRootResource
|
protected String |
baseUrl
|
protected com.sun.jersey.api.client.Client |
client
|
protected LoginHelper |
loginHelper
|
protected static PropertiesManager |
propertiesManager
|
protected com.sun.jersey.api.client.WebResource |
rootResource
|
protected ConfluenceRpc |
rpc
|
protected ServerStateManager |
serverStateManager
|
protected TestData |
testData
|
protected UserManagementHelper |
userHelper
|
| Fields inherited from class net.sourceforge.jwebunit.junit.WebTestCase |
|---|
tester |
| Constructor Summary | |
|---|---|
AbstractRestAcceptanceTest()
|
|
| Method Summary | ||
|---|---|---|
protected void |
assertLink(String rel,
String href,
com.atlassian.plugins.rest.common.Link link)
|
|
protected JSONObject |
doGet(com.sun.jersey.api.client.WebResource resource)
|
|
protected
|
doGet(com.sun.jersey.api.client.WebResource resource,
Class<T> entityClass)
|
|
protected URI |
doPost(com.sun.jersey.api.client.WebResource resource,
Object entity)
|
|
protected
|
doPut(com.sun.jersey.api.client.WebResource resource,
T entity)
|
|
protected com.sun.jersey.api.client.WebResource |
expand(com.sun.jersey.api.client.WebResource webResource,
String... values)
|
|
protected com.sun.jersey.api.client.WebResource |
expandWithIndexes(com.sun.jersey.api.client.WebResource webResource,
String value,
int start,
int end)
|
|
protected ContentEntity |
getContentWithId(List<ContentEntity> entities,
String id)
|
|
protected com.sun.jersey.api.client.WebResource |
getResource(URI uri,
User user)
|
|
protected com.sun.jersey.api.client.WebResource |
getRootResource(User user)
|
|
void |
runBare()
|
|
protected void |
setUp()
|
|
protected void |
tearDown()
|
|
| Methods inherited from class net.sourceforge.jwebunit.junit.WebTestCase |
|---|
assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHiddenFieldPresent, assertImagePresent, assertImageValid, assertImageValidAndStore, assertKeyInTable, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeysInTable, assertKeysInTable, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithImage, assertLinkPresentWithText, assertLinkPresentWithText, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, assertSubmitButtonNotPresent, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertTableEquals, assertTableEquals, assertTableMatch, assertTableMatch, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTableRowsEqual, assertTableRowsEqual, assertTableRowsMatch, assertTableRowsMatch, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTextNotPresent, assertTextPresent, assertTitleEquals, assertTitleEqualsKey, assertTitleEqualsKey, assertTitleMatch, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getDialog, getElementAttributByXPath, getElementTextByXPath, getFormElementValue, getImage, getMessage, getMessage, getPageSource, getServeurResponse, getTable, getTestContext, getTester, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, reset, saveAs, selectOption, selectOptionByValue, selectOptions, selectOptionsByValues, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setScriptingEnabled, setTestContext, setTestingEngineKey, setTextField, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, uncheckCheckbox, uncheckCheckbox |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, 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 |
| Field Detail |
|---|
protected static final PropertiesManager propertiesManager
protected ConfluenceRpc rpc
protected com.sun.jersey.api.client.WebResource rootResource
protected com.sun.jersey.api.client.WebResource adminRootResource
protected com.sun.jersey.api.client.Client client
protected String baseUrl
protected LoginHelper loginHelper
protected ServerStateManager serverStateManager
protected UserManagementHelper userHelper
protected TestData testData
| Constructor Detail |
|---|
public AbstractRestAcceptanceTest()
| Method Detail |
|---|
public void runBare()
throws Throwable
runBare in class net.sourceforge.jwebunit.junit.WebTestCaseThrowable
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseException
protected void tearDown()
throws Exception
tearDown in class net.sourceforge.jwebunit.junit.WebTestCaseException
protected com.sun.jersey.api.client.WebResource expand(com.sun.jersey.api.client.WebResource webResource,
String... values)
protected com.sun.jersey.api.client.WebResource expandWithIndexes(com.sun.jersey.api.client.WebResource webResource,
String value,
int start,
int end)
protected com.sun.jersey.api.client.WebResource getRootResource(User user)
protected com.sun.jersey.api.client.WebResource getResource(URI uri,
User user)
protected JSONObject doGet(com.sun.jersey.api.client.WebResource resource)
throws JSONException
JSONException
protected <T> T doGet(com.sun.jersey.api.client.WebResource resource,
Class<T> entityClass)
protected <T> T doPut(com.sun.jersey.api.client.WebResource resource,
T entity)
protected URI doPost(com.sun.jersey.api.client.WebResource resource,
Object entity)
protected ContentEntity getContentWithId(List<ContentEntity> entities,
String id)
protected void assertLink(String rel,
String href,
com.atlassian.plugins.rest.common.Link link)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||