Home | History | Annotate | Download | only in junit3

Lines Matching refs:testClass

54     public S createSuite(Class<? extends TestCase> testClass) {
55 List<T> tests = testsFromTestCase(testClass);
56 return factory.createSuite(testClass, tests);
60 Class<? extends TestCase> testClass, String methodName, Annotation[] annotations) {
61 return factory.createTest(testClass, methodName, annotations);
64 private T createWarning(Class<? extends Test> testClass, String name, Throwable throwable) {
65 return factory.createFailingTest(testClass, name, throwable);
68 private List<T> testsFromTestCase(final Class<? extends TestCase> testClass) {
75 validateTestClass(testClass);
77 tests.add(createWarning(testClass, "warning", e));
82 for (Method method : testClass.getMethods()) {
87 tests.add(createTest(testClass, method.getName(), method.getAnnotations()));
101 public static void validateTestClass(Class<?> testClass) {
103 TestSuite.getTestConstructor(testClass);
106 "Class " + testClass.getName()
110 if (!Modifier.isPublic(testClass.getModifiers())) {
111 throw new AssertionFailedError("Class " + testClass.getName() + " is not public");