public abstract class RewriteTestBase extends Object
| Constructor and Description |
|---|
RewriteTestBase() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
assertContains(String text,
String s)
Verifies that the given text contains the given string.
|
protected HttpAction<org.apache.http.client.methods.HttpGet> |
get(org.apache.http.client.HttpClient client,
String path)
Request a resource from the deployed test-application.
|
protected HttpAction<org.apache.http.client.methods.HttpGet> |
get(org.apache.http.client.HttpClient client,
String path,
org.apache.http.Header... headers)
Request a resource from the deployed test-application.
|
protected HttpAction<org.apache.http.client.methods.HttpGet> |
get(String path)
Request a resource from the deployed test-application.
|
protected String |
getBaseURL() |
protected String |
getContextPath() |
protected HtmlAction |
getWebClient(String path) |
protected HttpAction<org.apache.http.client.methods.HttpHead> |
head(String path)
Request a resource from the deployed test-application.
|
protected static File[] |
resolveDependencies(String coords)
Resolve an
Archive from Maven coordinates. |
protected static File |
resolveDependency(String coords)
Resolve an
Archive from Maven coordinates. |
protected static File[] resolveDependencies(String coords)
Archive from Maven coordinates.protected static File resolveDependency(String coords)
Archive from Maven coordinates.protected HttpAction<org.apache.http.client.methods.HttpGet> get(String path) throws Exception
HttpServletRequest.getContextPath() will be
automatically prepended to the given path.
E.g: A path of '/example' will be sent as '/rewrite-test/example'
Exceptionprotected HttpAction<org.apache.http.client.methods.HttpGet> get(org.apache.http.client.HttpClient client, String path) throws Exception
HttpServletRequest.getContextPath() will be
automatically prepended to the given path.
E.g: A path of '/example' will be sent as '/rewrite-test/example'
Exceptionprotected HttpAction<org.apache.http.client.methods.HttpGet> get(org.apache.http.client.HttpClient client, String path, org.apache.http.Header... headers) throws Exception
HttpServletRequest.getContextPath() will be
automatically prepended to the given path.
E.g: A path of '/example' will be sent as '/rewrite-test/example'
Exceptionprotected HttpAction<org.apache.http.client.methods.HttpHead> head(String path)
HttpServletRequest.getContextPath() will be
automatically prepended to the given path.
E.g: A path of '/example' will be sent as '/rewrite-test/example'
protected String getBaseURL()
protected String getContextPath()
protected HtmlAction getWebClient(String path) throws com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException, IOException
com.gargoylesoftware.htmlunit.FailingHttpStatusCodeExceptionIOExceptionCopyright © 2016 OCPsoft. All rights reserved.