org.apache.tapestry.test
Class JettyRunner
java.lang.Object
org.apache.tapestry.test.JettyRunner
public class JettyRunner
- extends Object
Used to start up an instance of the Jetty servlet container in-process, as part of an integration test suite. The
started Jetty is reliant on the file src/test/conf/webdefault.xml.
- See Also:
AbstractIntegrationTestSuite
|
Constructor Summary |
JettyRunner(File workingDir,
String contextPath,
int port,
String warPath)
Creates and starts a new instance of Jetty. |
DEFAULT_CONTEXT_PATH
public static final String DEFAULT_CONTEXT_PATH
- See Also:
- Constant Field Values
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
DEFAULT_SECURE_PORT
public static final int DEFAULT_SECURE_PORT
- See Also:
- Constant Field Values
JettyRunner
public JettyRunner(File workingDir,
String contextPath,
int port,
String warPath)
- Creates and starts a new instance of Jetty. This should be done from a test case setup method.
- Parameters:
workingDir - current directory (used for any relative files)contextPath - the context path for the deployed applicationport - the port number used to access the applicationwarPath - the path to the exploded web application (typically, "src/main/webapp")
stop
public void stop()
- Stops the Jetty instance. This should be called from a test case tear down method.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.