(Class<?> testClass)
| 827 | } |
| 828 | |
| 829 | private static Object createInstance(Class<?> testClass) throws Exception { |
| 830 | Constructor<?> ctor = testClass.getDeclaredConstructor(); |
| 831 | ctor.setAccessible(true); |
| 832 | return ctor.newInstance(); |
| 833 | } |
| 834 | |
| 835 | private static Method findCompatibleMethod(Class<?> cls, String name, List<Object> args) { |
| 836 | // prefer public methods first |