Package org.camunda.bpm
Class AbstractWebIntegrationTest
- java.lang.Object
-
- org.camunda.bpm.AbstractWebIntegrationTest
-
- Direct Known Subclasses:
AbstractWebappUiIntegrationTest,CsrfPreventionIT,ErrorPageIT,ExceptionLoggerIT,HttpHeaderSecurityIT,RestIT,RestJaxRs2IT,SessionCookieSecurityIT
public abstract class AbstractWebIntegrationTest extends Object
- Author:
- Daniel Meyer, Roman Smirnov
-
-
Field Summary
Fields Modifier and Type Field Description StringAPP_BASE_PATHprotected StringappUrlcom.sun.jersey.client.apache4.ApacheHttpClient4clientprotected HttpURLConnectionconnectionorg.apache.http.impl.client.DefaultHttpClientdefaultHttpClientstatic StringHOST_NAMEStringhttpPortprotected static org.openqa.selenium.chrome.ChromeDriverServiceserviceprotected StringTASKLIST_PATHprotected TestPropertiestestPropertiesprotected TestUtiltestUtil
-
Constructor Summary
Constructors Constructor Description AbstractWebIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbefore()voidcreateClient(String ctxPath)voiddestroyClient()List<String>getCookieHeaders()StringgetCookieValue(String cookieName)List<String>getHeaders(String name)protected StringgetRestCtxPath()protected StringgetWebappCtxPath()StringgetXsrfCookieValue()StringgetXsrfTokenHeader()URLConnectionperformRequest(String url, String method, String headerName, String headerValue)voidpreventRaceConditions()
-
-
-
Field Detail
-
TASKLIST_PATH
protected String TASKLIST_PATH
-
HOST_NAME
public static final String HOST_NAME
- See Also:
- Constant Field Values
-
APP_BASE_PATH
public String APP_BASE_PATH
-
appUrl
protected 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 String httpPort
-
connection
protected HttpURLConnection connection
-
-
Method Detail
-
destroyClient
public void destroyClient()
-
performRequest
public URLConnection performRequest(String url, String method, String headerName, String headerValue)
-
getXsrfTokenHeader
public String getXsrfTokenHeader()
-
getXsrfCookieValue
public String getXsrfCookieValue()
-
preventRaceConditions
public void preventRaceConditions() throws InterruptedException- Throws:
InterruptedException
-
getWebappCtxPath
protected String getWebappCtxPath()
-
getRestCtxPath
protected String getRestCtxPath()
-
-