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