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 TypeMethodDescriptionvoidprotected voidassertMediaType(kong.unirest.HttpResponse<String> response, String expected) protected voidassertMediaTypes(String resourcePath, boolean postSupported, String expectedMediaType, String... acceptMediaTypes) protected voidassertMediaTypesOfResource(String resourcePath, boolean postSupported) voidprotected org.json.JSONObjectprotected org.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, 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
-