rewrite-test-harness 1.0.5.Final

org.ocpsoft.rewrite.test
Class RewriteTestBase

java.lang.Object
  extended by org.ocpsoft.rewrite.test.RewriteTestBase

public class RewriteTestBase
extends Object

Author:
Lincoln Baxter, III

Constructor Summary
RewriteTestBase()
           
 
Method Summary
protected  HttpAction<org.apache.http.client.methods.HttpGet> get(String path)
          Request a resource from the deployed test-application.
 String getBaseURL()
           
protected  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(String path)
          Request a resource from the deployed test-application.
protected static Collection<org.jboss.shrinkwrap.api.GenericArchive> resolveDependencies(String coords)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RewriteTestBase

public RewriteTestBase()
Method Detail

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 Collection<org.jboss.shrinkwrap.api.GenericArchive> resolveDependencies(String coords)

get

protected HttpAction<org.apache.http.client.methods.HttpGet> get(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(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 String getBaseURL()

getContextPath

protected String getContextPath()

rewrite-test-harness 1.0.5.Final

Copyright © 2012 OCPsoft. All Rights Reserved.