org.ocpsoft.rewrite.test
Class RewriteTestBase
java.lang.Object
org.ocpsoft.rewrite.test.RewriteTestBase
public class RewriteTestBase
- extends java.lang.Object
- Author:
- Lincoln Baxter, III
|
Method Summary |
protected HttpAction<org.apache.http.client.methods.HttpGet> |
get(java.lang.String path)
Request a resource from the deployed test-application. |
java.lang.String |
getBaseURL()
|
protected java.lang.String |
getContextPath()
|
static org.jboss.shrinkwrap.api.spec.WebArchive |
getDeployment()
|
static org.jboss.shrinkwrap.api.spec.WebArchive |
getDeploymentNoWebXml()
|
protected static org.jboss.shrinkwrap.api.spec.JavaArchive |
getRewriteArchive()
|
protected HttpAction<org.apache.http.client.methods.HttpHead> |
head(java.lang.String path)
Request a resource from the deployed test-application. |
protected static java.util.Collection<org.jboss.shrinkwrap.api.GenericArchive> |
resolveDependencies(java.lang.String coords)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RewriteTestBase
public RewriteTestBase()
getDeployment
@Deployment(testable=false)
public static org.jboss.shrinkwrap.api.spec.WebArchive getDeployment()
getDeploymentNoWebXml
public static org.jboss.shrinkwrap.api.spec.WebArchive getDeploymentNoWebXml()
getRewriteArchive
protected static org.jboss.shrinkwrap.api.spec.JavaArchive getRewriteArchive()
resolveDependencies
protected static java.util.Collection<org.jboss.shrinkwrap.api.GenericArchive> resolveDependencies(java.lang.String coords)
get
protected HttpAction<org.apache.http.client.methods.HttpGet> get(java.lang.String path)
- Request a resource from the deployed test-application. The
HttpServletRequest.getContextPath() will be
automatically prepended to the given path.
E.g: A path of '/example' will be sent as '/rewrite-test/example'
head
protected HttpAction<org.apache.http.client.methods.HttpHead> head(java.lang.String path)
- Request a resource from the deployed test-application. The
HttpServletRequest.getContextPath() will be
automatically prepended to the given path.
E.g: A path of '/example' will be sent as '/rewrite-test/example'
getBaseURL
public java.lang.String getBaseURL()
getContextPath
protected java.lang.String getContextPath()
Copyright © 2012 OCPsoft. All Rights Reserved.