Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.internal.server.runner » [javadoc | source]
org.apache.cactus.internal.server.runner
public class: XMLFormatter [javadoc | source]
java.lang.Object
   org.apache.cactus.internal.server.runner.XMLFormatter

All Implemented Interfaces:
    junit.framework.TestListener, XMLConstants

Format the test results in XML.
Method from org.apache.cactus.internal.server.runner.XMLFormatter Summary:
addError,   addFailure,   endTest,   getEncoding,   getSuiteClassName,   getTotalDurationAsString,   setEncoding,   setSuiteClassName,   setTotalDuration,   setXslFileName,   startTest,   toXML
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.internal.server.runner.XMLFormatter Detail:
 public  void addError(Test theTest,
    Throwable theThrowable) 
    Event called by the base test runner when the test fails with an error.
 public  void addFailure(Test theTest,
    AssertionFailedError theError) 
    Event called by the base test runner when the test fails with a failure.
 public  void endTest(Test theTest) 
    Event called by the base test runner when the test ends.
 public String getEncoding() 
 public String getSuiteClassName() 
 public String getTotalDurationAsString() 
 public  void setEncoding(String theEncoding) 
 public  void setSuiteClassName(String theSuiteClassName) 
    Sets the suite class name that was executed.
 public  void setTotalDuration(long theDuration) 
    Sets the duration it took to execute all the tests.
 public  void setXslFileName(String theXslFileName) 
    Sets the XSL stylesheet file name to put in the returned XML string so that the browser will try to apply it (IE at least, I don't know about the others).
 public  void startTest(Test theTest) 
    Event called by the base test runner when the test starts.
 public String toXML(TestResult theResult) 
    Formats the test result as an XML string.