Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » ant » taskdefs » [javadoc | source]
org.jboss.ant.taskdefs
public class: XMLJUnitResultFormatter [javadoc | source]
java.lang.Object
   org.jboss.ant.taskdefs.XMLJUnitResultFormatter

All Implemented Interfaces:
    org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter, org.apache.tools.ant.taskdefs.optional.junit.XMLConstants

A hack of the org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter that dumps out the result file at the start of every test with the test marked as failed due to a timeout on entry to startTest. This is then removed and written out correctly in endTest.
Field Summary
protected  JUnitTest currentSuite     
protected  File outputFile     
protected  long runs     
protected  long failures     
protected  long errors     
protected  long timeout     
protected  long startTime     
protected  boolean hadError     
Constructor:
 public XMLJUnitResultFormatter() 
Method from org.jboss.ant.taskdefs.XMLJUnitResultFormatter Summary:
addError,   addFailure,   addFailure,   endTest,   endTestSuite,   getOutput,   setOutput,   setSystemError,   setSystemOutput,   startTest,   startTestSuite
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ant.taskdefs.XMLJUnitResultFormatter Detail:
 public  void addError(Test test,
    Throwable t) 
    Interface TestListener.

    An error occured while running the test.

 public  void addFailure(Test test,
    Throwable t) 
    Interface TestListener for JUnit <= 3.4.

    A Test failed.

 public  void addFailure(Test test,
    AssertionFailedError t) 
    Interface TestListener for JUnit > 3.4.

    A Test failed.

 public  void endTest(Test t) 
    Interface TestListener.

    A Test is finished.

 public  void endTestSuite(JUnitTest suite) throws BuildException 
    The whole testsuite ended.
 protected File getOutput() 
    Since we are only given an OuptutStream, we have to figure out the file location based on the
 public  void setOutput(OutputStream out) 
 public  void setSystemError(String out) 
 public  void setSystemOutput(String out) 
 public  void startTest(Test t) 
    Interface TestListener.

    A new Test is started.

 public  void startTestSuite(JUnitTest suite) 
    The whole testsuite started.