Ejemplo n.º 1
0
 private Object callMethod(Object receiver, String name, Object... args) {
   try {
     java.lang.reflect.Method m =
         receiver.getClass().getMethod(name, testSupport.collectArgTypes(args));
     return m.invoke(receiver, args);
   } catch (Throwable e) {
     e.printStackTrace();
   }
   return null;
 }
Ejemplo n.º 2
0
 private Object instantiate(String className) {
   return testSupport.instantiate(className);
 }