public class RestTestHelper extends Object
AbstractRestSerializationAcceptanceTest
methods wherever possible.Modifier and Type | Field and Description |
---|---|
ProxyCreator |
proxyCreator |
AcceptanceTestHelper |
testHelper |
Constructor and Description |
---|
RestTestHelper(AcceptanceTestHelper testHelper) |
Modifier and Type | Method and Description |
---|---|
void |
assertSelfLinkMatchesResourcePath(RestApiResource resource) |
static org.codehaus.jackson.JsonNode |
getAsJsonNode(RestApiResource resource) |
static org.codehaus.jackson.JsonNode |
getAsJsonNode(com.sun.jersey.api.client.WebResource wrappedResource) |
static String |
getExpandable(org.codehaus.jackson.JsonNode jsonContent,
String name) |
static org.codehaus.jackson.JsonNode |
getExpandableLinksNode(org.codehaus.jackson.JsonNode jsonContent) |
static org.codehaus.jackson.JsonNode |
getLinks(org.codehaus.jackson.JsonNode node) |
static String |
getSelfLink(org.codehaus.jackson.JsonNode node) |
static boolean |
hasExpandable(org.codehaus.jackson.JsonNode jsonContent,
String name) |
RestApiResource |
newBaseResource() |
RestApiResource |
newExperimentalResource() |
public final AcceptanceTestHelper testHelper
public final ProxyCreator proxyCreator
public RestTestHelper(AcceptanceTestHelper testHelper)
public RestApiResource newBaseResource()
public RestApiResource newExperimentalResource()
public static org.codehaus.jackson.JsonNode getAsJsonNode(RestApiResource resource) throws IOException
IOException
public static org.codehaus.jackson.JsonNode getAsJsonNode(com.sun.jersey.api.client.WebResource wrappedResource) throws IOException
IOException
public static String getSelfLink(org.codehaus.jackson.JsonNode node)
public static org.codehaus.jackson.JsonNode getLinks(org.codehaus.jackson.JsonNode node)
public static String getExpandable(org.codehaus.jackson.JsonNode jsonContent, String name)
public static org.codehaus.jackson.JsonNode getExpandableLinksNode(org.codehaus.jackson.JsonNode jsonContent)
public static boolean hasExpandable(org.codehaus.jackson.JsonNode jsonContent, String name)
public void assertSelfLinkMatchesResourcePath(RestApiResource resource) throws IOException
IOException
Copyright © 2003–2017 Atlassian. All rights reserved.