Package org.camunda.bpm.rest
Class RestIT
- java.lang.Object
-
- org.camunda.bpm.AbstractWebIntegrationTest
-
- org.camunda.bpm.rest.RestIT
-
public class RestIT extends AbstractWebIntegrationTest
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.AbstractWebIntegrationTest
APP_BASE_PATH, appUrl, client, connection, defaultHttpClient, HOST_NAME, httpPort, service, TASKLIST_PATH, testProperties, testUtil
-
-
Constructor Summary
Constructors Constructor Description RestIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertJodaTimePresent()protected voidassertMediaType(com.sun.jersey.api.client.ClientResponse response, javax.ws.rs.core.MediaType expected)protected voidassertMediaTypes(com.sun.jersey.api.client.WebResource resource, boolean postSupported, javax.ws.rs.core.MediaType expectedMediaType, String... acceptMediaTypes)protected voidassertMediaTypesOfResource(String resourcePath, boolean postSupported)voidcreateClient()protected org.codehaus.jettison.json.JSONObjectgetFirstHistoricVariableUpdates()protected org.codehaus.jettison.json.JSONObjectgetFirstTask()voidtestComplexObjectJacksonSerialization()voidtestDelayedJobDefinitionSuspension()voidtestEmptyBodyFilterIsActive()voidtestOptionsRequest()voidtestPolymorphicSerialization()Tests that a feature implemented via Jackson-2 annotations works: polymorphic serialization of historic detailsvoidtestProcessInstanceQuery()Uses Jackson's object mapper directlyvoidtestScenario()voidtestSingleTaskContentType()voidtestTaskFilterResultContentType()voidtestTaskQueryContentType()-
Methods inherited from class org.camunda.bpm.AbstractWebIntegrationTest
before, createClient, destroyClient, getCookieHeaders, getCookieValue, getHeaders, getRestCtxPath, getWebappCtxPath, getXsrfCookieValue, getXsrfTokenHeader, performRequest, preventRaceConditions
-
-
-
-
Method Detail
-
testScenario
public void testScenario() throws org.codehaus.jettison.json.JSONException- Throws:
org.codehaus.jettison.json.JSONException
-
assertJodaTimePresent
public void assertJodaTimePresent()
-
testDelayedJobDefinitionSuspension
public void testDelayedJobDefinitionSuspension()
-
testTaskQueryContentType
public void testTaskQueryContentType()
-
testSingleTaskContentType
public void testSingleTaskContentType() throws org.codehaus.jettison.json.JSONException- Throws:
org.codehaus.jettison.json.JSONException
-
testTaskFilterResultContentType
public void testTaskFilterResultContentType() throws org.codehaus.jettison.json.JSONException- Throws:
org.codehaus.jettison.json.JSONException
-
testPolymorphicSerialization
public void testPolymorphicSerialization() throws org.codehaus.jettison.json.JSONExceptionTests that a feature implemented via Jackson-2 annotations works: polymorphic serialization of historic details- Throws:
org.codehaus.jettison.json.JSONException
-
testProcessInstanceQuery
public void testProcessInstanceQuery()
Uses Jackson's object mapper directly
-
testComplexObjectJacksonSerialization
public void testComplexObjectJacksonSerialization() throws org.codehaus.jettison.json.JSONException- Throws:
org.codehaus.jettison.json.JSONException
-
testOptionsRequest
public void testOptionsRequest()
-
testEmptyBodyFilterIsActive
public void testEmptyBodyFilterIsActive() throws org.codehaus.jettison.json.JSONException- Throws:
org.codehaus.jettison.json.JSONException
-
getFirstTask
protected org.codehaus.jettison.json.JSONObject getFirstTask() throws org.codehaus.jettison.json.JSONException- Throws:
org.codehaus.jettison.json.JSONException
-
getFirstHistoricVariableUpdates
protected org.codehaus.jettison.json.JSONObject getFirstHistoricVariableUpdates() throws org.codehaus.jettison.json.JSONException- Throws:
org.codehaus.jettison.json.JSONException
-
assertMediaTypesOfResource
protected void assertMediaTypesOfResource(String resourcePath, boolean postSupported)
-
assertMediaTypes
protected void assertMediaTypes(com.sun.jersey.api.client.WebResource resource, boolean postSupported, javax.ws.rs.core.MediaType expectedMediaType, String... acceptMediaTypes)
-
assertMediaType
protected void assertMediaType(com.sun.jersey.api.client.ClientResponse response, javax.ws.rs.core.MediaType expected)
-
-