( Class<T> classToInstantiate )
| 61 | } |
| 62 | |
| 63 | public static <T> T createWithoutConstructor ( Class<T> classToInstantiate ) throws Exception { |
| 64 | return createWithConstructor(classToInstantiate, Object.class, new Class[0], new Object[0]); |
| 65 | } |
| 66 | public static <T> T createWithConstructor ( Class<T> classToInstantiate, Class<? super T> constructorClass, Class<?>[] consArgTypes, Object[] consArgs ) |
| 67 | throws Exception { |
| 68 | Constructor<? super T> objCons = constructorClass.getDeclaredConstructor(consArgTypes); |
no test coverage detected