org.apache.tools.ant.taskdefs.optional.junit
public class JUnit4TestMethodAdapter extends Object implements Test
run(TestResult)
executes
the given JUnit-4-style test methods and notifies the given {@code TestResult}
object using its old (JUnit 3.8.x style) API.
Constructor Summary | |
---|---|
JUnit4TestMethodAdapter(Class testClass, String[] methodNames)
Creates a new adapter for the given class and a method within the class.
|
Method Summary | |
---|---|
int | countTestCases() |
Description | getDescription() |
Class | getTestClass() |
List | getTests() |
void | run(TestResult result) |
String | toString() |
Parameters: testClass test class containing the method to be executed methodNames names of the test methods that are to be executed
Throws: java.lang.IllegalArgumentException if any of the arguments is {@code null} or if any of the given method names is {@code null} or empty