Package org.junit.rules
Class Stopwatch.InternalWatcher
java.lang.Object
org.junit.rules.TestWatcher
org.junit.rules.Stopwatch.InternalWatcher
- All Implemented Interfaces:
TestRule
- Enclosing class:
Stopwatch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
failed
(Throwable e, Description description) Invoked when a test failsprotected void
finished
(Description description) Invoked when a test method finishes (whether passing or failing)protected void
skipped
(AssumptionViolatedException e, Description description) Invoked when a test is skipped due to a failed assumption.protected void
starting
(Description description) Invoked when a test is about to startprotected void
succeeded
(Description description) Invoked when a test succeedsMethods inherited from class org.junit.rules.TestWatcher
apply, skipped
-
Constructor Details
-
InternalWatcher
private InternalWatcher()
-
-
Method Details
-
starting
Description copied from class:TestWatcher
Invoked when a test is about to start- Overrides:
starting
in classTestWatcher
-
finished
Description copied from class:TestWatcher
Invoked when a test method finishes (whether passing or failing)- Overrides:
finished
in classTestWatcher
-
succeeded
Description copied from class:TestWatcher
Invoked when a test succeeds- Overrides:
succeeded
in classTestWatcher
-
failed
Description copied from class:TestWatcher
Invoked when a test fails- Overrides:
failed
in classTestWatcher
-
skipped
Description copied from class:TestWatcher
Invoked when a test is skipped due to a failed assumption.- Overrides:
skipped
in classTestWatcher
-