Package org.camunda.bpm.rest
Class RestIT
java.lang.Object
org.camunda.bpm.AbstractWebIntegrationTest
org.camunda.bpm.rest.RestIT
-
Field Summary
Fields inherited from class org.camunda.bpm.AbstractWebIntegrationTest
appBasePath, appUrl, client, COOKIE_HEADER, csrfToken, HOST_NAME, httpPort, JSESSIONID_IDENTIFIER, service, sessionId, TASKLIST_PATH, testProperties, testUtil, X_XSRF_TOKEN_HEADER, XSRF_TOKEN_IDENTIFIER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidassertMediaType(com.sun.jersey.api.client.ClientResponse response, String expected) protected voidassertMediaTypes(com.sun.jersey.api.client.WebResource resource, boolean postSupported, String expectedMediaType, String... acceptMediaTypes) protected voidassertMediaTypesOfResource(String resourcePath, boolean postSupported) voidprotected org.codehaus.jettison.json.JSONObjectprotected org.codehaus.jettison.json.JSONObjectvoidvoidvoidvoidvoidvoidTests that a feature implemented via Jackson-2 annotations works: polymorphic serialization of historic detailsvoidUses Jackson's object mapper directlyvoidvoidvoidvoidMethods inherited from class org.camunda.bpm.AbstractWebIntegrationTest
before, createClient, createCookieHeader, createCookieHeader, destroyClient, getCookie, getCookieHeaders, getCookieValue, getCookieValue, getRestCtxPath, getTokens, getWebappCtxPath, getXsrfCookieValue, getXsrfTokenHeader, preventRaceConditions
-
Constructor Details
-
RestIT
public RestIT()
-
-
Method Details
-
createClient
- Throws:
Exception
-
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
-
shouldSerializeDateWithDefinedFormat
public void shouldSerializeDateWithDefinedFormat() 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
-
assertMediaTypes
-
assertMediaType
-