Package org.camunda.bpm
Class AbstractWebIntegrationTest
- java.lang.Object
-
- org.camunda.bpm.AbstractWebIntegrationTest
-
- Direct Known Subclasses:
AbstractWebappUiIntegrationTest
,CsrfPreventionIT
,ErrorPageIT
,ExceptionLoggerIT
,HttpHeaderSecurityIT
,RestIT
,RestJaxRs2IT
,SessionCookieSameSiteIT
,SessionCookieSecurityIT
public abstract class AbstractWebIntegrationTest extends java.lang.Object
- Author:
- Daniel Meyer, Roman Smirnov
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
APP_BASE_PATH
protected java.lang.String
appUrl
com.sun.jersey.client.apache4.ApacheHttpClient4
client
protected java.net.HttpURLConnection
connection
org.apache.http.impl.client.DefaultHttpClient
defaultHttpClient
static java.lang.String
HOST_NAME
java.lang.String
httpPort
protected static org.openqa.selenium.chrome.ChromeDriverService
service
protected java.lang.String
TASKLIST_PATH
protected TestProperties
testProperties
protected TestUtil
testUtil
-
Constructor Summary
Constructors Constructor Description AbstractWebIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
before()
void
createClient(java.lang.String ctxPath)
void
destroyClient()
java.util.List<java.lang.String>
getCookieHeaders()
java.lang.String
getCookieValue(java.lang.String cookieName)
java.util.List<java.lang.String>
getHeaders(java.lang.String name)
protected java.lang.String
getRestCtxPath()
protected java.lang.String
getWebappCtxPath()
java.lang.String
getXsrfCookieValue()
java.lang.String
getXsrfTokenHeader()
java.net.URLConnection
performRequest(java.lang.String url, java.lang.String method, java.lang.String headerName, java.lang.String headerValue)
void
preventRaceConditions()
-
-
-
Field Detail
-
TASKLIST_PATH
protected java.lang.String TASKLIST_PATH
-
HOST_NAME
public static final java.lang.String HOST_NAME
- See Also:
- Constant Field Values
-
APP_BASE_PATH
public java.lang.String APP_BASE_PATH
-
appUrl
protected java.lang.String appUrl
-
testUtil
protected TestUtil testUtil
-
testProperties
protected TestProperties testProperties
-
service
protected static org.openqa.selenium.chrome.ChromeDriverService service
-
client
public com.sun.jersey.client.apache4.ApacheHttpClient4 client
-
defaultHttpClient
public org.apache.http.impl.client.DefaultHttpClient defaultHttpClient
-
httpPort
public java.lang.String httpPort
-
connection
protected java.net.HttpURLConnection connection
-
-
Method Detail
-
before
public void before() throws java.lang.Exception
- Throws:
java.lang.Exception
-
destroyClient
public void destroyClient()
-
createClient
public void createClient(java.lang.String ctxPath) throws java.lang.Exception
- Throws:
java.lang.Exception
-
performRequest
public java.net.URLConnection performRequest(java.lang.String url, java.lang.String method, java.lang.String headerName, java.lang.String headerValue)
-
getXsrfTokenHeader
public java.lang.String getXsrfTokenHeader()
-
getXsrfCookieValue
public java.lang.String getXsrfCookieValue()
-
getCookieValue
public java.lang.String getCookieValue(java.lang.String cookieName)
-
getCookieHeaders
public java.util.List<java.lang.String> getCookieHeaders()
-
getHeaders
public java.util.List<java.lang.String> getHeaders(java.lang.String name)
-
preventRaceConditions
public void preventRaceConditions() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
getWebappCtxPath
protected java.lang.String getWebappCtxPath()
-
getRestCtxPath
protected java.lang.String getRestCtxPath()
-
-