org.apache.sling.testing.tools.junit
Class TestDescriptionRule
java.lang.Object
org.junit.rules.TestWatcher
org.apache.sling.testing.tools.junit.TestDescriptionRule
- All Implemented Interfaces:
- org.junit.rules.TestRule
public class TestDescriptionRule
- extends org.junit.rules.TestWatcher
Junit rule which exposes the current executing test's description as a thread local instance
|
Method Summary |
protected void |
finished(org.junit.runner.Description description)
|
static org.junit.runner.Description |
getCurrentTestDescription()
|
protected void |
starting(org.junit.runner.Description description)
|
| Methods inherited from class org.junit.rules.TestWatcher |
apply, failed, skipped, succeeded |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestDescriptionRule
public TestDescriptionRule()
finished
protected void finished(org.junit.runner.Description description)
- Overrides:
finished in class org.junit.rules.TestWatcher
starting
protected void starting(org.junit.runner.Description description)
- Overrides:
starting in class org.junit.rules.TestWatcher
getCurrentTestDescription
public static org.junit.runner.Description getCurrentTestDescription()
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.