Package org.camunda.bpm
Class AbstractWebIntegrationTest
java.lang.Object
org.camunda.bpm.AbstractWebIntegrationTest
- Direct Known Subclasses:
AbstractWebappUiIntegrationTest
,CsrfPreventionIT
,DateSerializationIT
,ErrorPageIT
,ExceptionLoggerIT
,HttpHeaderSecurityIT
,PluginsRootResourceIT
,RestIT
,RestJaxRs2IT
,SessionCookieSameSiteIT
,SessionCookieSecurityIT
- Author:
- Daniel Meyer, Roman Smirnov
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected com.sun.jersey.client.apache4.ApacheHttpClient4
protected static final String
protected String
protected static final String
protected String
protected static final String
protected static org.openqa.selenium.chrome.ChromeDriverService
protected String
protected static final String
protected TestProperties
protected TestUtil
protected static final String
protected static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
before()
void
createClient
(String ctxPath) protected String
protected String
createCookieHeader
(String csrf, String session) void
protected String
getCookieHeaders
(com.sun.jersey.api.client.ClientResponse response) protected String
getCookieValue
(com.sun.jersey.api.client.ClientResponse response, String cookieName) protected String
getCookieValue
(List<String> cookies, String cookieName) protected String
protected void
protected String
protected String
getXsrfCookieValue
(com.sun.jersey.api.client.ClientResponse response) protected String
getXsrfTokenHeader
(com.sun.jersey.api.client.ClientResponse response) protected void
-
Field Details
-
TASKLIST_PATH
- See Also:
-
COOKIE_HEADER
- See Also:
-
X_XSRF_TOKEN_HEADER
- See Also:
-
JSESSIONID_IDENTIFIER
- See Also:
-
XSRF_TOKEN_IDENTIFIER
- See Also:
-
HOST_NAME
- See Also:
-
appBasePath
-
appUrl
-
testUtil
-
testProperties
-
service
protected static org.openqa.selenium.chrome.ChromeDriverService service -
client
protected com.sun.jersey.client.apache4.ApacheHttpClient4 client -
httpPort
-
csrfToken
-
sessionId
-
-
Constructor Details
-
AbstractWebIntegrationTest
public AbstractWebIntegrationTest()
-
-
Method Details
-
before
- Throws:
Exception
-
destroyClient
public void destroyClient() -
createClient
- Throws:
Exception
-
getTokens
protected void getTokens() -
getCookieHeaders
-
getCookie
-
createCookieHeader
-
createCookieHeader
-
getXsrfTokenHeader
-
getXsrfCookieValue
-
getCookieValue
-
getCookieValue
-
preventRaceConditions
- Throws:
InterruptedException
-
getWebappCtxPath
-
getRestCtxPath
-