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 StringappBasePathprotected StringappUrlprotected com.sun.jersey.client.apache4.ApacheHttpClient4clientprotected static StringCOOKIE_HEADERprotected StringcsrfTokenprotected static StringHOST_NAMEprotected StringhttpPortprotected static StringJSESSIONID_IDENTIFIERprotected static org.openqa.selenium.chrome.ChromeDriverServiceserviceprotected StringsessionIdprotected static StringTASKLIST_PATHprotected TestPropertiestestPropertiesprotected TestUtiltestUtilprotected static StringX_XSRF_TOKEN_HEADERprotected static StringXSRF_TOKEN_IDENTIFIER
-
Constructor Summary
Constructors Constructor Description AbstractWebIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbefore()voidcreateClient(String ctxPath)protected StringcreateCookieHeader()protected StringcreateCookieHeader(String csrf, String session)voiddestroyClient()protected StringgetCookie(List<String> cookieValues, String cookieName)protected List<String>getCookieHeaders(com.sun.jersey.api.client.ClientResponse response)protected StringgetCookieValue(com.sun.jersey.api.client.ClientResponse response, String cookieName)protected StringgetCookieValue(List<String> cookies, String cookieName)protected StringgetRestCtxPath()protected voidgetTokens()protected StringgetWebappCtxPath()protected StringgetXsrfCookieValue(com.sun.jersey.api.client.ClientResponse response)protected StringgetXsrfTokenHeader(com.sun.jersey.api.client.ClientResponse response)protected voidpreventRaceConditions()
-
-
-
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()
-
-