Package org.camunda.bpm
Class AbstractWebIntegrationTest
- java.lang.Object
-
- org.camunda.bpm.AbstractWebIntegrationTest
-
- Direct Known Subclasses:
AbstractWebappUiIntegrationTest
,CsrfPreventionIT
,DateSerializationIT
,ErrorPageIT
,ExceptionLoggerIT
,HttpHeaderSecurityIT
,RestIT
,RestJaxRs2IT
,SessionCookieSameSiteIT
,SessionCookieSecurityIT
public abstract class AbstractWebIntegrationTest extends Object
- Author:
- Daniel Meyer, Roman Smirnov
-
-
Field Summary
Fields Modifier and Type Field Description protected String
appBasePath
protected String
appUrl
protected com.sun.jersey.client.apache4.ApacheHttpClient4
client
protected static String
COOKIE_HEADER
protected String
csrfToken
protected static String
HOST_NAME
protected String
httpPort
protected static String
JSESSIONID_IDENTIFIER
protected static org.openqa.selenium.chrome.ChromeDriverService
service
protected String
sessionId
protected static String
TASKLIST_PATH
protected TestProperties
testProperties
protected TestUtil
testUtil
protected static String
X_XSRF_TOKEN_HEADER
protected static String
XSRF_TOKEN_IDENTIFIER
-
Constructor Summary
Constructors Constructor Description AbstractWebIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
before()
void
createClient(String ctxPath)
protected String
createCookieHeader()
protected String
createCookieHeader(String csrf, String session)
void
destroyClient()
protected String
getCookie(List<String> cookieValues, String cookieName)
protected List<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
getRestCtxPath()
protected void
getTokens()
protected String
getWebappCtxPath()
protected String
getXsrfCookieValue(com.sun.jersey.api.client.ClientResponse response)
protected String
getXsrfTokenHeader(com.sun.jersey.api.client.ClientResponse response)
protected void
preventRaceConditions()
-
-
-
Field Detail
-
TASKLIST_PATH
protected static final String TASKLIST_PATH
- See Also:
- Constant Field Values
-
COOKIE_HEADER
protected static final String COOKIE_HEADER
- See Also:
- Constant Field Values
-
X_XSRF_TOKEN_HEADER
protected static final String X_XSRF_TOKEN_HEADER
- See Also:
- Constant Field Values
-
JSESSIONID_IDENTIFIER
protected static final String JSESSIONID_IDENTIFIER
- See Also:
- Constant Field Values
-
XSRF_TOKEN_IDENTIFIER
protected static final String XSRF_TOKEN_IDENTIFIER
- See Also:
- Constant Field Values
-
HOST_NAME
protected static final String HOST_NAME
- See Also:
- Constant Field Values
-
appBasePath
protected String appBasePath
-
appUrl
protected String appUrl
-
testUtil
protected TestUtil testUtil
-
testProperties
protected TestProperties testProperties
-
service
protected static org.openqa.selenium.chrome.ChromeDriverService service
-
client
protected com.sun.jersey.client.apache4.ApacheHttpClient4 client
-
httpPort
protected String httpPort
-
csrfToken
protected String csrfToken
-
sessionId
protected String sessionId
-
-
Method Detail
-
destroyClient
public void destroyClient()
-
getTokens
protected void getTokens()
-
getCookieHeaders
protected List<String> getCookieHeaders(com.sun.jersey.api.client.ClientResponse response)
-
createCookieHeader
protected String createCookieHeader()
-
getXsrfTokenHeader
protected String getXsrfTokenHeader(com.sun.jersey.api.client.ClientResponse response)
-
getXsrfCookieValue
protected String getXsrfCookieValue(com.sun.jersey.api.client.ClientResponse response)
-
getCookieValue
protected String getCookieValue(com.sun.jersey.api.client.ClientResponse response, String cookieName)
-
preventRaceConditions
protected void preventRaceConditions() throws InterruptedException
- Throws:
InterruptedException
-
getWebappCtxPath
protected String getWebappCtxPath()
-
getRestCtxPath
protected String getRestCtxPath()
-
-