public class JUnit4TestMethodAdapter
extends java.lang.Object
implements junit.framework.Test
run(TestResult) executes
the given JUnit-4-style test methods and notifies the given TestResult
object using its old (JUnit 3.8.x style) API.| Constructor and Description |
|---|
JUnit4TestMethodAdapter(java.lang.Class testClass,
java.lang.String[] methodNames)
Creates a new adapter for the given class and a method within the class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
countTestCases() |
org.junit.runner.Description |
getDescription() |
java.lang.Class |
getTestClass() |
java.util.List |
getTests() |
void |
run(junit.framework.TestResult result) |
java.lang.String |
toString() |
public JUnit4TestMethodAdapter(java.lang.Class testClass,
java.lang.String[] methodNames)
testClass - test class containing the method to be executedmethodNames - names of the test methods that are to be executedjava.lang.IllegalArgumentException - if any of the arguments is null
or if any of the given method names is null or emptypublic int countTestCases()
countTestCases in interface junit.framework.Testpublic org.junit.runner.Description getDescription()
public java.util.List getTests()
public java.lang.Class getTestClass()
public void run(junit.framework.TestResult result)
run in interface junit.framework.Testpublic java.lang.String toString()
toString in class java.lang.Object