Package org.junit.experimental.max
Class MaxHistory.RememberingListener
java.lang.Object
org.junit.runner.notification.RunListener
org.junit.experimental.max.MaxHistory.RememberingListener
- Enclosing class:
MaxHistory
-
Nested Class Summary
Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener
RunListener.ThreadSafe
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
testFailure
(Failure failure) Called when an atomic test fails, or when a listener throws an exception.void
testFinished
(Description description) Called when an atomic test has finished, whether the test succeeds or fails.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, testIgnored, testRunStarted, testSuiteFinished, testSuiteStarted
-
Field Details
-
overallStart
private long overallStart -
starts
-
-
Constructor Details
-
RememberingListener
private RememberingListener()
-
-
Method Details
-
testStarted
Description copied from class:RunListener
Called when an atomic test is about to be started.- Overrides:
testStarted
in classRunListener
- Parameters:
description
- the description of the test that is about to be run (generally a class and method name)- Throws:
Exception
-
testFinished
Description copied from class:RunListener
Called when an atomic test has finished, whether the test succeeds or fails.- Overrides:
testFinished
in classRunListener
- Parameters:
description
- the description of the test that just ran- Throws:
Exception
-
testFailure
Description copied from class:RunListener
Called when an atomic test fails, or when a listener throws an exception.In the case of a failure of an atomic test, this method will be called with the same
Description
passed toRunListener.testStarted(Description)
, from the same thread that calledRunListener.testStarted(Description)
.In the case of a listener throwing an exception, this will be called with a
Description
ofDescription.TEST_MECHANISM
, and may be called on an arbitrary thread.- Overrides:
testFailure
in classRunListener
- Parameters:
failure
- describes the test that failed and the exception that was thrown- Throws:
Exception
-
testRunFinished
Description copied from class:RunListener
Called when all tests have finished. This may be called on an arbitrary thread.- Overrides:
testRunFinished
in classRunListener
- Parameters:
result
- the summary of the test run, including all the tests that failed- Throws:
Exception
-