org.apache.sling.testing.tools.junit
Class TestDescriptionRule

java.lang.Object
  extended by org.junit.rules.TestWatcher
      extended by 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


Constructor Summary
TestDescriptionRule()
           
 
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
 

Constructor Detail

TestDescriptionRule

public TestDescriptionRule()
Method Detail

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.