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
 
 public abstract class AbstractWebIntegrationTest extends java.lang.Object- Author:
- Daniel Meyer, Roman Smirnov
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringappBasePathprotected java.lang.StringappUrlprotected com.sun.jersey.client.apache4.ApacheHttpClient4clientprotected static java.lang.StringCOOKIE_HEADERprotected java.lang.StringcsrfTokenprotected static java.lang.StringHOST_NAMEprotected java.lang.StringhttpPortprotected static java.lang.StringJSESSIONID_IDENTIFIERprotected static org.openqa.selenium.chrome.ChromeDriverServiceserviceprotected java.lang.StringsessionIdprotected static java.lang.StringTASKLIST_PATHprotected TestPropertiestestPropertiesprotected TestUtiltestUtilprotected static java.lang.StringX_XSRF_TOKEN_HEADERprotected static java.lang.StringXSRF_TOKEN_IDENTIFIER
 - 
Constructor SummaryConstructors Constructor Description AbstractWebIntegrationTest()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbefore()voidcreateClient(java.lang.String ctxPath)protected java.lang.StringcreateCookieHeader()protected java.lang.StringcreateCookieHeader(java.lang.String csrf, java.lang.String session)voiddestroyClient()protected java.lang.StringgetCookie(java.util.List<java.lang.String> cookieValues, java.lang.String cookieName)protected java.util.List<java.lang.String>getCookieHeaders(com.sun.jersey.api.client.ClientResponse response)protected java.lang.StringgetCookieValue(com.sun.jersey.api.client.ClientResponse response, java.lang.String cookieName)protected java.lang.StringgetCookieValue(java.util.List<java.lang.String> cookies, java.lang.String cookieName)protected java.lang.StringgetRestCtxPath()protected voidgetTokens()protected java.lang.StringgetWebappCtxPath()protected java.lang.StringgetXsrfCookieValue(com.sun.jersey.api.client.ClientResponse response)protected java.lang.StringgetXsrfTokenHeader(com.sun.jersey.api.client.ClientResponse response)protected voidpreventRaceConditions()
 
- 
- 
- 
Field Detail- 
TASKLIST_PATHprotected static final java.lang.String TASKLIST_PATH - See Also:
- Constant Field Values
 
 - 
COOKIE_HEADERprotected static final java.lang.String COOKIE_HEADER - See Also:
- Constant Field Values
 
 - 
X_XSRF_TOKEN_HEADERprotected static final java.lang.String X_XSRF_TOKEN_HEADER - See Also:
- Constant Field Values
 
 - 
JSESSIONID_IDENTIFIERprotected static final java.lang.String JSESSIONID_IDENTIFIER - See Also:
- Constant Field Values
 
 - 
XSRF_TOKEN_IDENTIFIERprotected static final java.lang.String XSRF_TOKEN_IDENTIFIER - See Also:
- Constant Field Values
 
 - 
HOST_NAMEprotected static final java.lang.String HOST_NAME - See Also:
- Constant Field Values
 
 - 
appBasePathprotected java.lang.String appBasePath 
 - 
appUrlprotected java.lang.String appUrl 
 - 
testUtilprotected TestUtil testUtil 
 - 
testPropertiesprotected TestProperties testProperties 
 - 
serviceprotected static org.openqa.selenium.chrome.ChromeDriverService service 
 - 
clientprotected com.sun.jersey.client.apache4.ApacheHttpClient4 client 
 - 
httpPortprotected java.lang.String httpPort 
 - 
csrfTokenprotected java.lang.String csrfToken 
 - 
sessionIdprotected java.lang.String sessionId 
 
- 
 - 
Method Detail- 
beforepublic void before() throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
destroyClientpublic void destroyClient() 
 - 
createClientpublic void createClient(java.lang.String ctxPath) throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
getTokensprotected void getTokens() 
 - 
getCookieHeadersprotected java.util.List<java.lang.String> getCookieHeaders(com.sun.jersey.api.client.ClientResponse response) 
 - 
getCookieprotected java.lang.String getCookie(java.util.List<java.lang.String> cookieValues, java.lang.String cookieName)
 - 
createCookieHeaderprotected java.lang.String createCookieHeader() 
 - 
createCookieHeaderprotected java.lang.String createCookieHeader(java.lang.String csrf, java.lang.String session)
 - 
getXsrfTokenHeaderprotected java.lang.String getXsrfTokenHeader(com.sun.jersey.api.client.ClientResponse response) 
 - 
getXsrfCookieValueprotected java.lang.String getXsrfCookieValue(com.sun.jersey.api.client.ClientResponse response) 
 - 
getCookieValueprotected java.lang.String getCookieValue(com.sun.jersey.api.client.ClientResponse response, java.lang.String cookieName)
 - 
getCookieValueprotected java.lang.String getCookieValue(java.util.List<java.lang.String> cookies, java.lang.String cookieName)
 - 
preventRaceConditionsprotected void preventRaceConditions() throws java.lang.InterruptedException- Throws:
- java.lang.InterruptedException
 
 - 
getWebappCtxPathprotected java.lang.String getWebappCtxPath() 
 - 
getRestCtxPathprotected java.lang.String getRestCtxPath() 
 
- 
 
-