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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected com.sun.jersey.client.apache4.ApacheHttpClient4protected static final Stringprotected Stringprotected static final Stringprotected Stringprotected static final Stringprotected static org.openqa.selenium.chrome.ChromeDriverServiceprotected Stringprotected static final Stringprotected TestPropertiesprotected TestUtilprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbefore()voidcreateClient(String ctxPath) protected Stringprotected StringcreateCookieHeader(String csrf, String session) voidprotected StringgetCookieHeaders(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 Stringprotected voidprotected Stringprotected StringgetXsrfCookieValue(com.sun.jersey.api.client.ClientResponse response) protected StringgetXsrfTokenHeader(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
-