public class VerboseTextListener extends TextRunListener
lastFailure
Constructor and Description |
---|
VerboseTextListener(org.junit.internal.JUnitSystem system) |
VerboseTextListener(PrintStream writer) |
Modifier and Type | Method and Description |
---|---|
void |
testAssumptionFailure(org.junit.runner.notification.Failure failure)
Called when an atomic test flags that it assumes a condition that is false.
|
void |
testClassFinished(Class<?> clazz)
Called when all tests of a test class have finished.
|
void |
testClassFinishedDelimiter()
Called after
MxRunListener.testClassFinished(Class) . |
void |
testClassStarted(Class<?> clazz)
Called when a test class is about to be started.
|
void |
testClassStartedDelimiter()
Called after
MxRunListener.testClassStarted(Class) . |
void |
testFailed(org.junit.runner.notification.Failure failure)
Called when an atomic test fails.
|
void |
testFinishedDelimiter()
Called after
MxRunListener.testFailed(Failure) . |
void |
testIgnored(org.junit.runner.Description description)
Called when a test will not be run, generally because a test method is annotated with
Ignore . |
void |
testStarted(org.junit.runner.Description description)
Called when an atomic test is about to be started.
|
void |
testSucceeded(org.junit.runner.Description description)
Called when an atomic test succeeds.
|
createRunListener, getLastFailure, getWriter, testFinished, testRunFinished, testRunStarted, testStartedDelimiter
public VerboseTextListener(org.junit.internal.JUnitSystem system)
public VerboseTextListener(PrintStream writer)
public void testClassStarted(Class<?> clazz)
MxRunListener
testClassStarted
in interface MxRunListener
testClassStarted
in class TextRunListener
clazz
- the test classpublic void testClassFinished(Class<?> clazz)
MxRunListener
testClassFinished
in interface MxRunListener
testClassFinished
in class TextRunListener
clazz
- the test classpublic void testStarted(org.junit.runner.Description description)
MxRunListener
testStarted
in interface MxRunListener
testStarted
in class TextRunListener
description
- the description of the test that is about to be run (generally a class and
method name)public void testIgnored(org.junit.runner.Description description)
MxRunListener
Ignore
.testIgnored
in interface MxRunListener
testIgnored
in class TextRunListener
description
- describes the test that will not be runpublic void testSucceeded(org.junit.runner.Description description)
MxRunListener
testSucceeded
in interface MxRunListener
testSucceeded
in class TextRunListener
description
- describes the test that will not be runpublic void testAssumptionFailure(org.junit.runner.notification.Failure failure)
MxRunListener
testAssumptionFailure
in interface MxRunListener
testAssumptionFailure
in class TextRunListener
failure
- describes the test that failed and the AssumptionViolatedException
that was thrownpublic void testFailed(org.junit.runner.notification.Failure failure)
MxRunListener
testFailed
in interface MxRunListener
testFailed
in class TextRunListener
failure
- describes the test that failed and the exception that was thrownpublic void testClassFinishedDelimiter()
MxRunListener
MxRunListener.testClassFinished(Class)
.testClassFinishedDelimiter
in interface MxRunListener
testClassFinishedDelimiter
in class TextRunListener
public void testClassStartedDelimiter()
MxRunListener
MxRunListener.testClassStarted(Class)
.testClassStartedDelimiter
in interface MxRunListener
testClassStartedDelimiter
in class TextRunListener
public void testFinishedDelimiter()
MxRunListener
MxRunListener.testFailed(Failure)
.testFinishedDelimiter
in interface MxRunListener
testFinishedDelimiter
in class TextRunListener