JUnit 3.7 introduces TestCase.getName() and subsequent versions
of JUnit remove the old name() method. This method provides
access to the name of a TestCase via reflection that is
supposed to work with version before and after JUnit 3.7.
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.
Parameters: t - the test. the name of the test. |