public class RestIT extends AbstractWebIntegrationTest
APP_BASE_PATH, appUrl, client, connection, defaultHttpClient, HOST_NAME, httpPort, service, TASKLIST_PATH, testProperties, testUtil
Constructor and Description |
---|
RestIT() |
Modifier and Type | Method and Description |
---|---|
void |
assertJodaTimePresent() |
protected void |
assertMediaType(com.sun.jersey.api.client.ClientResponse response,
javax.ws.rs.core.MediaType expected) |
protected void |
assertMediaTypes(com.sun.jersey.api.client.WebResource resource,
boolean postSupported,
javax.ws.rs.core.MediaType expectedMediaType,
String... acceptMediaTypes) |
protected void |
assertMediaTypesOfResource(String resourcePath,
boolean postSupported) |
void |
createClient() |
protected org.codehaus.jettison.json.JSONObject |
getFirstHistoricVariableUpdates() |
protected org.codehaus.jettison.json.JSONObject |
getFirstTask() |
void |
testComplexObjectJacksonSerialization() |
void |
testDelayedJobDefinitionSuspension() |
void |
testEmptyBodyFilterIsActive() |
void |
testOptionsRequest() |
void |
testPolymorphicSerialization()
Tests that a feature implemented via Jackson-2 annotations works:
polymorphic serialization of historic details
|
void |
testProcessInstanceQuery()
Uses Jackson's object mapper directly
|
void |
testScenario() |
void |
testSingleTaskContentType() |
void |
testTaskFilterResultContentType() |
void |
testTaskQueryContentType() |
before, createClient, destroyClient, getCookieHeaders, getCookieValue, getHeaders, getRestCtxPath, getWebappCtxPath, getXsrfCookieValue, getXsrfTokenHeader, performRequest, preventRaceConditions
public void testScenario() throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
public void assertJodaTimePresent()
public void testDelayedJobDefinitionSuspension()
public void testTaskQueryContentType()
public void testSingleTaskContentType() throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
public void testTaskFilterResultContentType() throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
public void testPolymorphicSerialization() throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
public void testProcessInstanceQuery()
public void testComplexObjectJacksonSerialization() throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
public void testOptionsRequest()
public void testEmptyBodyFilterIsActive() throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
protected org.codehaus.jettison.json.JSONObject getFirstTask() throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
protected org.codehaus.jettison.json.JSONObject getFirstHistoricVariableUpdates() throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
protected void assertMediaTypesOfResource(String resourcePath, boolean postSupported)
protected void assertMediaTypes(com.sun.jersey.api.client.WebResource resource, boolean postSupported, javax.ws.rs.core.MediaType expectedMediaType, String... acceptMediaTypes)
protected void assertMediaType(com.sun.jersey.api.client.ClientResponse response, javax.ws.rs.core.MediaType expected)
Copyright © 2021. All rights reserved.