com.sun.istack.test
Class AntXmlFormatter

java.lang.Object
  extended by com.sun.istack.test.AntXmlFormatter
All Implemented Interfaces:
junit.framework.TestListener

public class AntXmlFormatter
extends java.lang.Object
implements junit.framework.TestListener

TestListener that bridges to JUnitResultFormatter.

Author:
Kohsuke Kawaguchi

Constructor Summary
AntXmlFormatter(java.lang.Class<? extends org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter> formatter, java.io.File dir)
           
 
Method Summary
 void addError(junit.framework.Test test, java.lang.Throwable t)
           
 void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
           
 void close()
           
 void endTest(junit.framework.Test test)
           
 void startTest(junit.framework.Test test)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntXmlFormatter

public AntXmlFormatter(java.lang.Class<? extends org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter> formatter,
                       java.io.File dir)
Method Detail

close

public void close()

addError

public void addError(junit.framework.Test test,
                     java.lang.Throwable t)
Specified by:
addError in interface junit.framework.TestListener

addFailure

public void addFailure(junit.framework.Test test,
                       junit.framework.AssertionFailedError t)
Specified by:
addFailure in interface junit.framework.TestListener

startTest

public void startTest(junit.framework.Test test)
Specified by:
startTest in interface junit.framework.TestListener

endTest

public void endTest(junit.framework.Test test)
Specified by:
endTest in interface junit.framework.TestListener