junit.textui
Class ResultPrinter

java.lang.Object
  extended by junit.textui.ResultPrinter
All Implemented Interfaces:
TestListener

public class ResultPrinter
extends Object
implements TestListener


Constructor Summary
ResultPrinter(PrintStream writer)
           
 
Method Summary
 void addError(Test test, Throwable t)
          An error occurred.
 void addFailure(Test test, AssertionFailedError t)
          A failure occurred.
 void endTest(Test test)
          A test ended.
 PrintStream getWriter()
           
 void printDefect(TestFailure booBoo, int count)
           
 void startTest(Test test)
          A test started.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultPrinter

public ResultPrinter(PrintStream writer)
Method Detail

printDefect

public void printDefect(TestFailure booBoo,
                        int count)

getWriter

public PrintStream getWriter()

addError

public void addError(Test test,
                     Throwable t)
Description copied from interface: TestListener
An error occurred.

Specified by:
addError in interface TestListener
See Also:
TestListener.addError(Test, Throwable)

addFailure

public void addFailure(Test test,
                       AssertionFailedError t)
Description copied from interface: TestListener
A failure occurred.

Specified by:
addFailure in interface TestListener
See Also:
TestListener.addFailure(Test, AssertionFailedError)

endTest

public void endTest(Test test)
Description copied from interface: TestListener
A test ended.

Specified by:
endTest in interface TestListener
See Also:
TestListener.endTest(Test)

startTest

public void startTest(Test test)
Description copied from interface: TestListener
A test started.

Specified by:
startTest in interface TestListener
See Also:
TestListener.startTest(Test)