public class

ResultPrinter

extends Object
implements TestListener
java.lang.Object
   ↳ junit.textui.ResultPrinter

Summary

Public Constructors
ResultPrinter(PrintStream writer)
Public Methods
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.
Protected Methods
String elapsedTimeAsString(long runTime)
Returns the formatted string of the elapsed time.
void printDefectHeader(TestFailure booBoo, int count)
void printDefectTrace(TestFailure booBoo)
void printDefects(Enumeration<TestFailure> booBoos, int count, String type)
void printErrors(TestResult result)
void printFailures(TestResult result)
void printFooter(TestResult result)
void printHeader(long runTime)
[Expand]
Inherited Methods
From class java.lang.Object
From interface junit.framework.TestListener

Public Constructors

public ResultPrinter (PrintStream writer)

Public Methods

public void addError (Test test, Throwable t)

An error occurred.

public void addFailure (Test test, AssertionFailedError t)

A failure occurred.

public void endTest (Test test)

A test ended.

See Also

public PrintStream getWriter ()

public void printDefect (TestFailure booBoo, int count)

public void startTest (Test test)

A test started.

See Also

Protected Methods

protected String elapsedTimeAsString (long runTime)

Returns the formatted string of the elapsed time. Duplicated from BaseTestRunner. Fix it.

protected void printDefectHeader (TestFailure booBoo, int count)

protected void printDefectTrace (TestFailure booBoo)

protected void printDefects (Enumeration<TestFailure> booBoos, int count, String type)

protected void printErrors (TestResult result)

protected void printFailures (TestResult result)

protected void printFooter (TestResult result)

protected void printHeader (long runTime)