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 voidfailed(Throwable e, Description description) Invoked when a test failsprotected voidfinished(Description description) Invoked when a test method finishes (whether passing or failing)protected voidskipped(AssumptionViolatedException e, Description description) Invoked when a test is skipped due to a failed assumption.protected voidstarting(Description description) Invoked when a test is about to startprotected voidsucceeded(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:TestWatcherInvoked when a test is about to start- Overrides:
startingin classTestWatcher
-
finished
Description copied from class:TestWatcherInvoked when a test method finishes (whether passing or failing)- Overrides:
finishedin classTestWatcher
-
succeeded
Description copied from class:TestWatcherInvoked when a test succeeds- Overrides:
succeededin classTestWatcher
-
failed
Description copied from class:TestWatcherInvoked when a test fails- Overrides:
failedin classTestWatcher
-
skipped
Description copied from class:TestWatcherInvoked when a test is skipped due to a failed assumption.- Overrides:
skippedin classTestWatcher
-