Home | History | Annotate | Download | only in framework

Lines Matching refs:constructor

6 import java.lang.reflect.Constructor;
19 * TestSuite constructor.
23 * This constructor creates a suite with all the methods
59 addTest(warning("Class "+theClass.getName()+" has no public constructor TestCase(String name) or TestCase()"));
120 Constructor constructor;
122 constructor= getTestConstructor(theClass);
124 return warning("Class "+theClass.getName()+" has no public constructor TestCase(String name) or TestCase()");
128 if (constructor.getParameterTypes().length == 0) {
129 test= constructor.newInstance(new Object[0]);
133 test= constructor.newInstance(new Object[]{name});
138 return(warning("Exception in constructor: "+name+" ("+exceptionToString(e.getTargetException())+")"));
169 * Gets a constructor which takes a single String as
170 * its argument or a no arg constructor.
172 public static Constructor getTestConstructor(Class theClass) throws NoSuchMethodException {