Home | History | Annotate | Download | only in framework

Lines Matching refs:theClass

51 	static public Test createTest(Class<?> theClass, String name) {
54 constructor= getTestConstructor(theClass);
56 return warning("Class "+theClass.getName()+" has no public constructor TestCase(String name) or TestCase()");
81 public static Constructor<?> getTestConstructor(Class<?> theClass) throws NoSuchMethodException {
83 return theClass.getConstructor(String.class);
87 return theClass.getConstructor(new Class[0]);
128 public TestSuite(final Class<?> theClass) {
129 addTestsFromTestCase(theClass);
132 private void addTestsFromTestCase(final Class<?> theClass) {
133 fName= theClass.getName();
135 getTestConstructor(theClass); // Avoid generating multiple error messages
137 addTest(warning("Class "+theClass.getName()+" has no public constructor TestCase(String name) or TestCase()"));
141 if (!Modifier.isPublic(theClass.getModifiers())) {
142 addTest(warning("Class "+theClass.getName()+" is not public"));
146 Class<?> superClass= theClass;
150 addTestMethod(each, names, theClass);
154 addTest(warning("No tests found in "+theClass.getName()));
161 public TestSuite(Class<? extends TestCase> theClass, String name) {
162 this(theClass);
284 private void addTestMethod(Method m, List<String> names, Class<?> theClass) {
290 addTest(warning("Test method isn't public: "+ m.getName() + "(" + theClass.getCanonicalName() + ")"));
294 addTest(createTest(theClass, name));