Lines Matching defs:testCase
19 import junit.framework.TestCase;
27 * Represents a test to be run. Can be constructed without instantiating the TestCase or even
34 private final Class<? extends TestCase> enclosingClass;
36 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) {
40 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) {
46 public TestMethod(TestCase testCase) {
47 this(testCase.getName(), testCase.getClass());
67 public Class<? extends TestCase> getEnclosingClass() {
71 public TestCase createTest()
77 private TestCase instantiateTest(Class testCaseClass, String testName)
87 TestCase test = ((Constructor<? extends TestCase>) constructor).newInstance();
89 // {@link TestCase#setName(String)}
93 return ((Constructor<? extends TestCase>) constructor)