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

java.lang.Object
  extended bynet.sourceforge.groboutils.autodoc.v1.junit.AutoDocJUnitListener
      extended bynet.sourceforge.groboutils.autodoc.v1.junit.AutoDocJUnitFormatter
All Implemented Interfaces:
junit.framework.TestListener

public class AutoDocJUnitFormatter
extends AutoDocJUnitListener

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(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(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
 

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(JUnitTest suite)
The whole testsuite started.


endTestSuite

public void endTestSuite(JUnitTest suite)
The whole testsuite ended.


setOutput

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


setSystemOutput

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


setSystemError

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



Copyright © 2001-2003 by The GroboUtils Project