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, COOKIE_HEADER, csrfToken, HOST_NAME, httpPort, JSESSIONID_IDENTIFIER, service, sessionId, TASKLIST_PATH, testProperties, X_XSRF_TOKEN_HEADER, XSRF_TOKEN_IDENTIFIER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
assertMediaType
(kong.unirest.HttpResponse<String> response, String expected) protected void
assertMediaTypes
(String resourcePath, boolean postSupported, String expectedMediaType, String... acceptMediaTypes) protected void
assertMediaTypesOfResource
(String resourcePath, boolean postSupported) void
protected org.json.JSONObject
protected org.json.JSONObject
void
void
void
void
void
void
Tests that a feature implemented via Jackson-2 annotations works: polymorphic serialization of historic detailsvoid
Uses Jackson's object mapper directlyvoid
void
void
void
Methods inherited from class org.camunda.bpm.AbstractWebIntegrationTest
before, createClient, createCookieHeader, createCookieHeader, getCookie, getCookieHeaders, getCookieValue, getCookieValue, getRestCtxPath, getTokens, getWebappCtxPath, getXsrfCookieValue, getXsrfTokenHeader, preventRaceConditions, setUpClass
-
Constructor Details
-
RestIT
public RestIT()
-
-
Method Details
-
createClient
- Throws:
Exception
-
testScenario
- Throws:
Exception
-
assertJodaTimePresent
public void assertJodaTimePresent() -
testDelayedJobDefinitionSuspension
public void testDelayedJobDefinitionSuspension() -
testTaskQueryContentType
public void testTaskQueryContentType() -
testSingleTaskContentType
- Throws:
Exception
-
testTaskFilterResultContentType
- Throws:
Exception
-
shouldSerializeDateWithDefinedFormat
- Throws:
Exception
-
testPolymorphicSerialization
Tests that a feature implemented via Jackson-2 annotations works: polymorphic serialization of historic details- Throws:
Exception
-
testProcessInstanceQuery
public void testProcessInstanceQuery()Uses Jackson's object mapper directly -
testComplexObjectJacksonSerialization
- Throws:
Exception
-
testOptionsRequest
public void testOptionsRequest() -
testEmptyBodyFilterIsActive
public void testEmptyBodyFilterIsActive() -
getFirstTask
- Throws:
Exception
-
getFirstHistoricVariableUpdates
- Throws:
Exception
-
assertMediaTypesOfResource
-
assertMediaTypes
-
assertMediaType
-