org.junitee.servlet
Class JUnitEEXMLServlet

java.lang.Object
  extended byHttpServlet
      extended byorg.junitee.servlet.JUnitEEServlet
          extended byorg.junitee.servlet.JUnitEEXMLServlet

public class JUnitEEXMLServlet
extends JUnitEEServlet

This servlet implements the JUnitEE test runner. By default the classloader of this servlet is used also for loading the test classes. This will work in almost any case, but if necessary you can change this behaviour by subclassing this class and overwrite the method JUnitEEServlet.getDynamicClassLoader() to answer the classloader of your choice. By default an xml test report is generated.

Since:
1.5
Author:
Oliver Rossmueller
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.junitee.servlet.JUnitEEServlet
CACTUS_CONTEXT_URL_PROPERTY, OUTPUT_HTML, OUTPUT_XML
 
Constructor Summary
JUnitEEXMLServlet()
           
 
Method Summary
protected  java.lang.String getDefaultOutput()
          Answer the default output format of the test report.
 
Methods inherited from class org.junitee.servlet.JUnitEEServlet
doGet, doPost, errorResponse, getDefaultThreadMode, getDynamicClassLoader, getOutputProducer, getTestClassMethods, init, parseTestCaseList, printIndexHtml, printIndexHtmlTestMethods, renderResults, runTests, searchForTestCaseList, searchForTests, searchForTests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitEEXMLServlet

public JUnitEEXMLServlet()
Method Detail

getDefaultOutput

protected java.lang.String getDefaultOutput()
Answer the default output format of the test report. This implementation returns xml as the default output. It is possible to set the output format by using the output request parameter. Overwrite this method in your subclass to change the output format without the need for the request parameter.

Overrides:
getDefaultOutput in class JUnitEEServlet
Returns:
OUTPUT_XML