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 String
APP_BASE_PATH
protected String
appUrl
com.sun.jersey.client.apache4.ApacheHttpClient4
client
protected HttpURLConnection
connection
org.apache.http.impl.client.DefaultHttpClient
defaultHttpClient
static String
HOST_NAME
String
httpPort
protected static org.openqa.selenium.chrome.ChromeDriverService
service
protected 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(String ctxPath)
void
destroyClient()
List<String>
getCookieHeaders()
String
getCookieValue(String cookieName)
List<String>
getHeaders(String name)
protected String
getRestCtxPath()
protected String
getWebappCtxPath()
String
getXsrfCookieValue()
String
getXsrfTokenHeader()
URLConnection
performRequest(String url, String method, String headerName, String headerValue)
void
preventRaceConditions()
-
-
-
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()
-
-