public abstract class

AbstractRestAcceptanceTest

extends WebTestCase
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ net.sourceforge.jwebunit.junit.WebTestCase
         ↳ com.atlassian.confluence.rest.AbstractRestAcceptanceTest
Known Direct Subclasses

Class Overview

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?

Summary

Fields
protected WebResource adminRootResource
protected String baseUrl
protected Client client
protected LoginHelper loginHelper
protected WebResource rootResource
protected ConfluenceRpc rpc
protected UserManagementHelper userHelper
[Expand]
Inherited Fields
From class net.sourceforge.jwebunit.junit.WebTestCase
Public Constructors
AbstractRestAcceptanceTest()
Protected Methods
void assertLink(String rel, String href, Link link)
JSONObject doGet(WebResource resource)
<T> T doGet(WebResource resource, Class<T> entityClass, String requestType)
<T> T doGet(WebResource resource, Class<T> entityClass)
URI doPost(WebResource resource, Object entity)
<T> T doPut(WebResource resource, T entity)
WebResource expand(WebResource webResource, String... values)
WebResource expandWithIndexes(WebResource webResource, String value, int start, int end)
ContentEntity getContentWithId(List<ContentEntity> entities, String id)
WebResource getResource(URI uri, User user)
WebResource getRootResource(User user)
void setUp()
void tearDown()
[Expand]
Inherited Methods
From class net.sourceforge.jwebunit.junit.WebTestCase
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Fields

protected WebResource adminRootResource

protected String baseUrl

protected Client client

protected LoginHelper loginHelper

protected WebResource rootResource

protected ConfluenceRpc rpc

protected UserManagementHelper userHelper

Public Constructors

public AbstractRestAcceptanceTest ()

Protected Methods

protected void assertLink (String rel, String href, Link link)

protected JSONObject doGet (WebResource resource)

Throws
JSONException

protected T doGet (WebResource resource, Class<T> entityClass, String requestType)

protected T doGet (WebResource resource, Class<T> entityClass)

protected URI doPost (WebResource resource, Object entity)

protected T doPut (WebResource resource, T entity)

protected WebResource expand (WebResource webResource, String... values)

protected WebResource expandWithIndexes (WebResource webResource, String value, int start, int end)

protected ContentEntity getContentWithId (List<ContentEntity> entities, String id)

protected WebResource getResource (URI uri, User user)

protected WebResource getRootResource (User user)

protected void setUp ()

Throws
Exception

protected void tearDown ()

Throws
Exception