public class JUnitVersionHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JUNIT_FRAMEWORK_JUNIT4_TEST_CASE_FACADE
Name of the JUnit4 class we look for.
|
Constructor and Description |
---|
JUnitVersionHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getIgnoreMessage(junit.framework.Test test) |
static java.lang.String |
getTestCaseClassName(junit.framework.Test test)
Tries to find the name of the class which a test represents
across JUnit 3 and 4.
|
static java.lang.String |
getTestCaseName(junit.framework.Test t)
JUnit 3.7 introduces TestCase.getName() and subsequent versions
of JUnit remove the old name() method.
|
public static final java.lang.String JUNIT_FRAMEWORK_JUNIT4_TEST_CASE_FACADE
public static java.lang.String getTestCaseName(junit.framework.Test t)
since Ant 1.5.1 this method will invoke "public
String getName()
" on any implementation of Test if
it exists.
Since Ant 1.7 also checks for JUnit4TestCaseFacade explicitly. This is used by junit.framework.JUnit4TestAdapter.
t
- the test.public static java.lang.String getTestCaseClassName(junit.framework.Test test)
test
- test case to look atpublic static java.lang.String getIgnoreMessage(junit.framework.Test test)