public class ServletTestRunner
extends javax.servlet.http.HttpServlet
This class currently does a couple of reflection tricks to avoid a direct
dependancy on the TraX API (javax.xml.transform.*
),
encapsulated in the
XMLTransformer
class.
Constructor and Description |
---|
ServletTestRunner() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest theRequest,
javax.servlet.http.HttpServletResponse theResponse)
Starts the test suite passed as a HTTP parameter
|
void |
init()
Called by the container when the servlet is initialized.
|
protected java.lang.String |
run(java.lang.String theSuiteClassName,
java.lang.String theXslFileName,
java.lang.String theEncoding)
Run the suite tests and return the result.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
- If an initialization parameter contains an
illegal valuepublic void doGet(javax.servlet.http.HttpServletRequest theRequest, javax.servlet.http.HttpServletResponse theResponse) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
theRequest
- the incoming HTTP client requesttheResponse
- the outgoing HTTP client request to send back.javax.servlet.ServletException
- if an error occurs when servicing the
requestjava.io.IOException
- if an error occurs when servicing the requestprotected java.lang.String run(java.lang.String theSuiteClassName, java.lang.String theXslFileName, java.lang.String theEncoding) throws javax.servlet.ServletException
theSuiteClassName
- the suite containing the tests to runtheXslFileName
- the name of the XSL stylesheet or null if we don't
want to apply a stylesheet to the returned XML datatheEncoding
- the encoding to use for the returned XML or null if
default encoding is to be usedjavax.servlet.ServletException
- if the suite failed to be loadedCopyright © 2000-2004 Apache Software Foundation. All Rights Reserved.