|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.junit.runner.Runner
org.junit.internal.runners.JUnit4ClassRunner
org.springunit.framework.junit4.NameRunner
public class NameRunner
Stores the name of the currently running test from the TestRunner.
This implementation follows the example given by Gabriel Cooper at
http://tech.groups.yahoo.com/group/junit/message/18728.
| Constructor Summary | |
|---|---|
NameRunner(Class<?> clazz)
|
|
| Method Summary | |
|---|---|
static String |
getTestMethodName()
|
static String |
getTestName()
|
void |
run(org.junit.runner.notification.RunNotifier notifier)
|
static void |
setTestName(String name)
|
| Methods inherited from class org.junit.internal.runners.JUnit4ClassRunner |
|---|
classAnnotations, createTest, filter, getDescription, getName, getTestClass, getTestMethods, invokeTestMethod, methodDescription, runMethods, sort, testAnnotations, testName, validate, wrapMethod |
| Methods inherited from class org.junit.runner.Runner |
|---|
testCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NameRunner(Class<?> clazz)
throws org.junit.internal.runners.InitializationError
org.junit.internal.runners.InitializationError| Method Detail |
|---|
public static String getTestName()
public static void setTestName(String name)
public static String getTestMethodName()
public void run(org.junit.runner.notification.RunNotifier notifier)
run in class org.junit.internal.runners.JUnit4ClassRunner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||