com.atlassian.confluence.rest
Class AbstractRestSerializationAcceptanceTest

java.lang.Object
  extended by com.atlassian.confluence.rest.AbstractRestSerializationAcceptanceTest
Direct Known Subclasses:
RestApiContentAcceptanceTest, RestApiContentTrashAcceptanceTest, RestApiSpaceAcceptanceTest, RestChildContentAcceptanceTest, RestLinksMapAcceptanceTest, RestListLinksAcceptanceTest, RestSelfLinkAcceptanceTest

public abstract class AbstractRestSerializationAcceptanceTest
extends Object


Field Summary
protected  String baseApi
           
protected  String basePath
           
protected  long pageId
           
protected  RestApiResource resource
           
protected  ConfluenceRpc rpc
           
protected  AcceptanceTestHelper testHelper
           
 org.junit.rules.TestName testName
           
 
Constructor Summary
AbstractRestSerializationAcceptanceTest()
           
 
Method Summary
protected  org.codehaus.jackson.JsonNode getAsJsonNode(RestApiResource resource)
           
protected  String getExpandable(org.codehaus.jackson.JsonNode jsonContent, String name)
           
protected  org.codehaus.jackson.JsonNode getExpandableNode(org.codehaus.jackson.JsonNode jsonContent)
           
protected  org.codehaus.jackson.JsonNode getLinks(org.codehaus.jackson.JsonNode node)
           
protected  org.codehaus.jackson.JsonNode getLinks(RestApiResource apiResource)
           
protected  String getSelfLink(org.codehaus.jackson.JsonNode node)
           
protected  boolean hasExpandable(org.codehaus.jackson.JsonNode jsonContent, String name)
           
 void setUp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testHelper

protected final AcceptanceTestHelper testHelper

resource

protected RestApiResource resource

rpc

protected ConfluenceRpc rpc

pageId

protected long pageId

baseApi

protected String baseApi

basePath

protected String basePath

testName

public org.junit.rules.TestName testName
Constructor Detail

AbstractRestSerializationAcceptanceTest

public AbstractRestSerializationAcceptanceTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

getAsJsonNode

protected org.codehaus.jackson.JsonNode getAsJsonNode(RestApiResource resource)
                                               throws IOException
Throws:
IOException

getSelfLink

protected String getSelfLink(org.codehaus.jackson.JsonNode node)

getLinks

protected org.codehaus.jackson.JsonNode getLinks(RestApiResource apiResource)
                                          throws Exception
Throws:
Exception

getLinks

protected org.codehaus.jackson.JsonNode getLinks(org.codehaus.jackson.JsonNode node)

getExpandable

protected String getExpandable(org.codehaus.jackson.JsonNode jsonContent,
                               String name)

getExpandableNode

protected org.codehaus.jackson.JsonNode getExpandableNode(org.codehaus.jackson.JsonNode jsonContent)

hasExpandable

protected boolean hasExpandable(org.codehaus.jackson.JsonNode jsonContent,
                                String name)


Copyright © 2003–2015 Atlassian. All rights reserved.