|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.junit.runner.notification.RunListener
org.junit.internal.TextListener
public class TextListener
Constructor Summary | |
---|---|
TextListener()
|
|
TextListener(java.io.PrintStream writer)
|
Method Summary | |
---|---|
protected java.lang.String |
elapsedTimeAsString(long runTime)
Returns the formatted string of the elapsed time. |
protected void |
printFailure(Failure failure,
int count)
|
protected void |
printFailureHeader(Failure failure,
int count)
|
protected void |
printFailures(Result result)
|
protected void |
printFailureTrace(Failure failure)
|
protected void |
printFooter(Result result)
|
protected void |
printHeader(long runTime)
|
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 |
---|
testFinished, testRunStarted |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextListener()
public TextListener(java.io.PrintStream writer)
Method Detail |
---|
public void testRunFinished(Result result)
RunListener
testRunFinished
in class RunListener
result
- the summary of the test run, including all the tests that failedpublic void testStarted(Description description)
RunListener
testStarted
in class RunListener
description
- the description of the test that is about to be run
(generally a class and method name)public void testFailure(Failure failure)
RunListener
testFailure
in class RunListener
failure
- describes the test that failed and the exception that was thrownpublic void testIgnored(Description description)
RunListener
Ignore
.
testIgnored
in class RunListener
description
- describes the test that will not be runprotected void printHeader(long runTime)
protected void printFailures(Result result)
protected void printFailure(Failure failure, int count)
protected void printFailureHeader(Failure failure, int count)
protected void printFailureTrace(Failure failure)
protected void printFooter(Result result)
protected java.lang.String elapsedTimeAsString(long runTime)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |