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
private class Stopwatch.InternalWatcher extends TestWatcher
-
-
Constructor Summary
Constructors Modifier Constructor Description privateInternalWatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfailed(java.lang.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 succeeds-
Methods inherited from class org.junit.rules.TestWatcher
apply, skipped
-
-
-
-
Method Detail
-
starting
protected void starting(Description description)
Description copied from class:TestWatcherInvoked when a test is about to start- Overrides:
startingin classTestWatcher
-
finished
protected void finished(Description description)
Description copied from class:TestWatcherInvoked when a test method finishes (whether passing or failing)- Overrides:
finishedin classTestWatcher
-
succeeded
protected void succeeded(Description description)
Description copied from class:TestWatcherInvoked when a test succeeds- Overrides:
succeededin classTestWatcher
-
failed
protected void failed(java.lang.Throwable e, Description description)Description copied from class:TestWatcherInvoked when a test fails- Overrides:
failedin classTestWatcher
-
skipped
protected void skipped(AssumptionViolatedException e, Description description)
Description copied from class:TestWatcherInvoked when a test is skipped due to a failed assumption.- Overrides:
skippedin classTestWatcher
-
-