net.sourceforge.groboutils.pmti.v1.autodoc.v1
Class ITFJUnitListener

java.lang.Object
  extended bynet.sourceforge.groboutils.autodoc.v1.testserver.TestCorrelate
      extended bynet.sourceforge.groboutils.autodoc.v1.testserver.junit.JUnitTestListener
          extended bynet.sourceforge.groboutils.pmti.v1.autodoc.v1.ITFJUnitListener
All Implemented Interfaces:
junit.framework.TestListener

public class ITFJUnitListener
extends JUnitTestListener

Listens to JUnit tests, and sends a report to the ITFServer via the ITFBootstrap.

Since:
March 4, 2002
Version:
$Date: 2003/02/10 22:51:56 $
Author:
Matt Albrecht groboclown@users.sourceforge.net

Constructor Summary
ITFJUnitListener()
           
 
Method Summary
protected  void addError(TestData data, java.lang.Throwable t)
          Called when the test in the data has an unexpected exception thrown.
protected  void addFailure(TestData data, junit.framework.AssertionFailedError t)
          Called when the test in the data has an assertion error.
protected  void endTest(TestData data)
          Called after the test ends.
protected  void startTest(TestData data)
          Called before the test starts, and after the test has been registered.
 
Methods inherited from class net.sourceforge.groboutils.autodoc.v1.testserver.junit.JUnitTestListener
addError, addFailure, createTestInfo, endTest, startTest
 
Methods inherited from class net.sourceforge.groboutils.autodoc.v1.testserver.TestCorrelate
createTestInfo, createTestInfoFromStack, findClassMethodFromStack, getFinder, getOwner, getOwnerName, getTestData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ITFJUnitListener

public ITFJUnitListener()
Method Detail

startTest

protected void startTest(TestData data)
Called before the test starts, and after the test has been registered.

Specified by:
startTest in class JUnitTestListener

endTest

protected void endTest(TestData data)
Called after the test ends. The implemented method must not send off the data - that is done by the JUnitTestListener implementation.

Specified by:
endTest in class JUnitTestListener

addError

protected void addError(TestData data,
                        java.lang.Throwable t)
Called when the test in the data has an unexpected exception thrown.

Specified by:
addError in class JUnitTestListener

addFailure

protected void addFailure(TestData data,
                          junit.framework.AssertionFailedError t)
Called when the test in the data has an assertion error.

Specified by:
addFailure in class JUnitTestListener


Copyright © 2001-2003 by The GroboUtils Project