org.apache.tapestry5.test
Class JettyRunner

java.lang.Object
  extended by org.apache.tapestry5.test.JettyRunner

Deprecated. Use Jetty7Runner instead

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

Field Summary
static String DEFAULT_CONTEXT_PATH
          Deprecated.  
static int DEFAULT_PORT
          Deprecated.  
static int DEFAULT_SECURE_PORT
          Deprecated.  
 
Constructor Summary
JettyRunner(File workingDir, String contextPath, int port, String warPath, String... virtualHosts)
          Deprecated. Creates and starts a new instance of Jetty.
 
Method Summary
 void stop()
          Deprecated. Stops the Jetty instance.
 String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_CONTEXT_PATH

public static final String DEFAULT_CONTEXT_PATH
Deprecated. 
See Also:
Constant Field Values

DEFAULT_PORT

public static final int DEFAULT_PORT
Deprecated. 
See Also:
Constant Field Values

DEFAULT_SECURE_PORT

public static final int DEFAULT_SECURE_PORT
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

JettyRunner

public JettyRunner(File workingDir,
                   String contextPath,
                   int port,
                   String warPath,
                   String... virtualHosts)
Deprecated. 
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 application
port - the port number used to access the application
warPath - the path to the exploded web application (typically, "src/main/webapp")
virtualHosts - an array with virtual hosts
Method Detail

stop

public void stop()
Deprecated. 
Stops the Jetty instance. This should be called from a test case tear down method.


toString

public String toString()
Deprecated. 
Overrides:
toString in class Object


Copyright © 2003-2012 The Apache Software Foundation.