org.apache.tapestry5.test
Class JettyRunner
java.lang.Object
org.apache.tapestry5.test.JettyRunner
public class JettyRunner
- extends java.lang.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(java.io.File workingDir,
java.lang.String contextPath,
int port,
java.lang.String warPath)
Creates and starts a new instance of Jetty. |
|
Method Summary |
void |
stop()
Stops the Jetty instance. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_CONTEXT_PATH
public static final java.lang.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(java.io.File workingDir,
java.lang.String contextPath,
int port,
java.lang.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 java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2007-2009 Apache Software Foundation. All Rights Reserved.