com.atlassian.confluence.rest
Class AbstractRestAcceptanceTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.confluence.junit3.JUnit3TimingTestCase
com.atlassian.confluence.rest.AbstractRestAcceptanceTest
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- AbstractActiveObjectsAcceptanceTest, BreadcrumbsAcceptanceTest, CommentAcceptanceTest, ContentAcceptanceTest, CreateDialogSpacesRestAcceptanceTest, CreateDialogWebItemsRestAcceptanceTest, GroupsAcceptanceTest, I18nAcceptanceTest, KeyboardShortcutAcceptanceTest, PageAcceptanceTest, QuickReloadAcceptanceTest, RestAttachmentAcceptanceTest, RestSearchAcceptanceTest, RestSignupAcceptanceTest, RestSpaceAcceptanceTest, RestSpaceListAcceptanceTest, UserAcceptanceTest, UserHistoryAcceptanceTest, UsersAcceptanceTest
public abstract class AbstractRestAcceptanceTest
- extends com.atlassian.confluence.junit3.JUnit3TimingTestCase
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?
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)
|
protected net.sourceforge.jwebunit.junit.WebTester |
getTester()
Deprecated. Use JWebUnit.getTester() |
protected void |
setUp()
|
protected void |
tearDown()
|
Methods inherited from class com.atlassian.confluence.junit3.JUnit3TimingTestCase |
runBare, setExceptionTransformer |
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 |
propertiesManager
protected static final PropertiesManager propertiesManager
rpc
protected ConfluenceRpc rpc
rootResource
protected com.sun.jersey.api.client.WebResource rootResource
adminRootResource
protected com.sun.jersey.api.client.WebResource adminRootResource
client
protected com.sun.jersey.api.client.Client client
baseUrl
protected String baseUrl
loginHelper
protected LoginHelper loginHelper
serverStateManager
protected ServerStateManager serverStateManager
userHelper
protected UserManagementHelper userHelper
testData
protected TestData testData
AbstractRestAcceptanceTest
public AbstractRestAcceptanceTest()
getTester
@Deprecated
protected net.sourceforge.jwebunit.junit.WebTester getTester()
- Deprecated. Use
JWebUnit.getTester()
setUp
protected void setUp()
throws Exception
- Overrides:
setUp
in class junit.framework.TestCase
- Throws:
Exception
tearDown
protected void tearDown()
throws Exception
- Overrides:
tearDown
in class junit.framework.TestCase
- Throws:
Exception
expand
protected com.sun.jersey.api.client.WebResource expand(com.sun.jersey.api.client.WebResource webResource,
String... values)
expandWithIndexes
protected com.sun.jersey.api.client.WebResource expandWithIndexes(com.sun.jersey.api.client.WebResource webResource,
String value,
int start,
int end)
getRootResource
protected com.sun.jersey.api.client.WebResource getRootResource(User user)
getResource
protected com.sun.jersey.api.client.WebResource getResource(URI uri,
User user)
doGet
protected JSONObject doGet(com.sun.jersey.api.client.WebResource resource)
throws JSONException
- Throws:
JSONException
doGet
protected <T> T doGet(com.sun.jersey.api.client.WebResource resource,
Class<T> entityClass)
doPut
protected <T> T doPut(com.sun.jersey.api.client.WebResource resource,
T entity)
doPost
protected URI doPost(com.sun.jersey.api.client.WebResource resource,
Object entity)
getContentWithId
protected ContentEntity getContentWithId(List<ContentEntity> entities,
String id)
assertLink
protected void assertLink(String rel,
String href,
com.atlassian.plugins.rest.common.Link link)
Copyright © 2003-2013 Atlassian. All Rights Reserved.