public abstract class AbstractWebIntegrationTest extends Object
Modifier and Type | Field and 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 and Description |
---|
AbstractWebIntegrationTest() |
Modifier and Type | Method and 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() |
protected String TASKLIST_PATH
public static final String HOST_NAME
public String APP_BASE_PATH
protected String appUrl
protected TestUtil testUtil
protected TestProperties testProperties
protected static org.openqa.selenium.chrome.ChromeDriverService service
public com.sun.jersey.client.apache4.ApacheHttpClient4 client
public org.apache.http.impl.client.DefaultHttpClient defaultHttpClient
public String httpPort
protected HttpURLConnection connection
public void destroyClient()
public URLConnection performRequest(String url, String method, String headerName, String headerValue)
public String getXsrfTokenHeader()
public String getXsrfCookieValue()
public void preventRaceConditions() throws InterruptedException
InterruptedException
protected String getWebappCtxPath()
protected String getRestCtxPath()
Copyright © 2021. All rights reserved.