org.junit.internal
Class TextListener

java.lang.Object
  extended by org.junit.runner.notification.RunListener
      extended by org.junit.internal.TextListener

public class TextListener
extends RunListener


Constructor Summary
TextListener(JUnitSystem system)
           
TextListener(PrintStream writer)
           
 
Method Summary
 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.
 
Methods inherited from class org.junit.runner.notification.RunListener
testAssumptionFailure, testFinished, testRunStarted
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextListener

public TextListener(JUnitSystem system)

TextListener

public TextListener(PrintStream writer)
Method Detail

testRunFinished

public void testRunFinished(Result result)
Description copied from class: RunListener
Called when all tests have finished

Overrides:
testRunFinished in class RunListener
Parameters:
result - the summary of the test run, including all the tests that failed

testStarted

public void testStarted(Description description)
Description copied from class: RunListener
Called when an atomic test is about to be started.

Overrides:
testStarted in class RunListener
Parameters:
description - the description of the test that is about to be run (generally a class and method name)

testFailure

public void testFailure(Failure failure)
Description copied from class: RunListener
Called when an atomic test fails.

Overrides:
testFailure in class RunListener
Parameters:
failure - describes the test that failed and the exception that was thrown

testIgnored

public void testIgnored(Description description)
Description copied from class: RunListener
Called when a test will not be run, generally because a test method is annotated with Ignore.

Overrides:
testIgnored in class RunListener
Parameters:
description - describes the test that will not be run