Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.server.runner » [javadoc | source]
org.apache.cactus.server.runner
public class: ServletTestRunner [javadoc | source]
java.lang.Object
   javax.servlet.GenericServlet
      javax.servlet.http.HttpServlet
         org.apache.cactus.server.runner.ServletTestRunner

All Implemented Interfaces:
    Serializable, Servlet, ServletConfig

Helper servlet to start a JUnit Test Runner in a webapp.

This class currently does a couple of reflection tricks to avoid a direct dependancy on the TraX API (javax.xml.transform.*), encapsulated in the org.apache.cactus.internal.server.runner.XMLTransformer class.

Method from org.apache.cactus.server.runner.ServletTestRunner Summary:
doGet,   init,   run
Methods from javax.servlet.http.HttpServlet:
service
Methods from javax.servlet.GenericServlet:
destroy,   getInitParameter,   getInitParameterNames,   getServletConfig,   getServletContext,   getServletInfo,   getServletName,   init,   init,   log,   log,   service
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.server.runner.ServletTestRunner Detail:
 public  void doGet(HttpServletRequest theRequest,
    HttpServletResponse theResponse) throws IOException, ServletException 
    Starts the test suite passed as a HTTP parameter.
 public  void init() throws ServletException 
    Called by the container when the servlet is initialized.
 protected String run(String theSuiteClassName,
    String theXslFileName,
    String theEncoding) throws ServletException 
    Run the suite tests and return the result.