|
rewrite-test-harness 2.0.0.Alpha3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocpsoft.rewrite.test.RewriteTestBase
public abstract class RewriteTestBase
Base utility class for Rewrite Tests.
| Constructor Summary | |
|---|---|
RewriteTestBase()
|
|
| Method Summary | |
|---|---|
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 Collection<org.jboss.shrinkwrap.api.GenericArchive> |
resolveDependencies(String coords)
Resolve an Archive from Maven coordinates. |
protected static org.jboss.shrinkwrap.api.GenericArchive |
resolveDependency(String coords)
Resolve an Archive from Maven coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RewriteTestBase()
| Method Detail |
|---|
protected static Collection<org.jboss.shrinkwrap.api.GenericArchive> resolveDependencies(String coords)
Archive from Maven coordinates.
protected static org.jboss.shrinkwrap.api.GenericArchive 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'
Exception
protected 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'
Exception
protected 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.FailingHttpStatusCodeException
IOException
protected static void assertContains(String text,
String s)
|
rewrite-test-harness 2.0.0.Alpha3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||