public class

TextListener

extends RunListener
java.lang.Object
   ↳ org.junit.runner.notification.RunListener
     ↳ org.junit.internal.TextListener

Summary

Public Constructors
TextListener(JUnitSystem system)
TextListener(PrintStream writer)
Public Methods
void testFailure(Failure failure)
Called when an atomic test fails.
void testIgnored(Description description)
Called when a test will not be run, generally because a test method is annotated with Ignore.
void testRunFinished(Result result)
Called when all tests have finished
void testStarted(Description description)
Called when an atomic test is about to be started.
Protected Methods
String elapsedTimeAsString(long runTime)
Returns the formatted string of the elapsed time.
void printFailure(Failure each, String prefix)
void printFailures(Result result)
void printFooter(Result result)
void printHeader(long runTime)
[Expand]
Inherited Methods
From class org.junit.runner.notification.RunListener
From class java.lang.Object

Public Constructors

public TextListener (JUnitSystem system)

public TextListener (PrintStream writer)

Public Methods

public void testFailure (Failure failure)

Called when an atomic test fails.

Parameters
failure describes the test that failed and the exception that was thrown

public void testIgnored (Description description)

Called when a test will not be run, generally because a test method is annotated with Ignore.

Parameters
description describes the test that will not be run

public void testRunFinished (Result result)

Called when all tests have finished

Parameters
result the summary of the test run, including all the tests that failed

public void testStarted (Description description)

Called when an atomic test is about to be started.

Parameters
description the description of the test that is about to be run (generally a class and method name)

Protected Methods

protected String elapsedTimeAsString (long runTime)

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

protected void printFailure (Failure each, String prefix)

protected void printFailures (Result result)

protected void printFooter (Result result)

protected void printHeader (long runTime)