Class RunListenerEmitter
java.lang.Object
org.junit.runner.notification.RunListener
com.carrotsearch.ant.tasks.junit4.slave.RunListenerEmitter
public class RunListenerEmitter
extends org.junit.runner.notification.RunListener
Serialize test execution events. Attempts to handle
certain corner cases that are not cleanly handled by
JUnit itself (reporting the cause of ignored methods,
etc.).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener
org.junit.runner.notification.RunListener.ThreadSafe
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Serializer
private long
private org.junit.runner.notification.Failure
A failure signaled at the suite level.private org.junit.runner.Description
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
testAssumptionFailure
(org.junit.runner.notification.Failure failure) void
testFailure
(org.junit.runner.notification.Failure failure) void
testFinished
(org.junit.runner.Description description) void
testIgnored
(org.junit.runner.Description description) void
testRunFinished
(org.junit.runner.Result result) void
testRunStarted
(org.junit.runner.Description description) void
testStarted
(org.junit.runner.Description description) Methods inherited from class org.junit.runner.notification.RunListener
testSuiteFinished, testSuiteStarted
-
Field Details
-
serializer
-
suiteDescription
private org.junit.runner.Description suiteDescription -
start
private long start -
suiteStart
private long suiteStart -
suiteAssumption
private org.junit.runner.notification.Failure suiteAssumptionA failure signaled at the suite level. Most likely will result in ignored methods.
-
-
Constructor Details
-
RunListenerEmitter
-
-
Method Details
-
testRunStarted
- Overrides:
testRunStarted
in classorg.junit.runner.notification.RunListener
- Throws:
Exception
-
testStarted
- Overrides:
testStarted
in classorg.junit.runner.notification.RunListener
- Throws:
Exception
-
testFailure
- Overrides:
testFailure
in classorg.junit.runner.notification.RunListener
- Throws:
Exception
-
testAssumptionFailure
public void testAssumptionFailure(org.junit.runner.notification.Failure failure) - Overrides:
testAssumptionFailure
in classorg.junit.runner.notification.RunListener
-
testIgnored
- Overrides:
testIgnored
in classorg.junit.runner.notification.RunListener
- Throws:
Exception
-
testFinished
- Overrides:
testFinished
in classorg.junit.runner.notification.RunListener
- Throws:
Exception
-
testRunFinished
- Overrides:
testRunFinished
in classorg.junit.runner.notification.RunListener
- Throws:
Exception
-