net.sourceforge.groboutils.autodoc.v1.junit
Class AutoDocJUnitFormatter

java.lang.Object
  |
  +--net.sourceforge.groboutils.autodoc.v1.junit.AutoDocJUnitListener
        |
        +--net.sourceforge.groboutils.autodoc.v1.junit.AutoDocJUnitFormatter
All Implemented Interfaces:
org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter, junit.framework.TestListener

public class AutoDocJUnitFormatter
extends AutoDocJUnitListener
implements org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter

Interfaces with the Ant JUnit task to add a Listener into JUnit for the tests which report to the ITF framework.

Since:
March 1, 2002
Version:
$Date: 2003/02/10 22:52:12 $
Author:
Matt Albrecht groboclown@users.sourceforge.net

Constructor Summary
AutoDocJUnitFormatter()
          Create a new listener, using super's method to load the default set of delegated listeners.
AutoDocJUnitFormatter(TestListenerFactory[] factories)
          Create a new listener using the given factories to specify all sub-listeners.
 
Method Summary
 void endTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
          The whole testsuite ended.
 void setOutput(java.io.OutputStream out)
          Sets the stream the formatter is supposed to write its results to.
 void setSystemError(java.lang.String err)
          This is what the test has written to System.err
 void setSystemOutput(java.lang.String out)
          This is what the test has written to System.out
 void startTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
          The whole testsuite started.
 
Methods inherited from class net.sourceforge.groboutils.autodoc.v1.junit.AutoDocJUnitListener
addError, addFailure, addListener, endTest, getFactories, getFactoryStore, getListeners, loadListeners, startTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface junit.framework.TestListener
addError, addFailure, endTest, startTest
 

Constructor Detail

AutoDocJUnitFormatter

public AutoDocJUnitFormatter()
Create a new listener, using super's method to load the default set of delegated listeners.


AutoDocJUnitFormatter

public AutoDocJUnitFormatter(TestListenerFactory[] factories)
Create a new listener using the given factories to specify all sub-listeners.

Method Detail

startTestSuite

public void startTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
The whole testsuite started.

Specified by:
startTestSuite in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter

endTestSuite

public void endTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
The whole testsuite ended.

Specified by:
endTestSuite in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter

setOutput

public void setOutput(java.io.OutputStream out)
Sets the stream the formatter is supposed to write its results to.

Specified by:
setOutput in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter

setSystemOutput

public void setSystemOutput(java.lang.String out)
This is what the test has written to System.out

Specified by:
setSystemOutput in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter

setSystemError

public void setSystemError(java.lang.String err)
This is what the test has written to System.err

Specified by:
setSystemError in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter


Copyright © 2001-2003 by The GroboUtils Project