Class Methods
java.lang.Object
org.codehaus.commons.compiler.util.reflect.Methods
-
Method Summary
Modifier and TypeMethodDescriptionstatic <R, EX extends Throwable>
RA wrapper formethod.invoke(obj, args)that catches any exception, wraps it in anAssertionError, and throws that.
-
Method Details
-
invoke
public static <R, EX extends Throwable> R invoke(Method method, @Nullable Object obj, Object... args) throws EX A wrapper formethod.invoke(obj, args)that catches any exception, wraps it in anAssertionError, and throws that.- Throws:
EX- The method threw that exceptionClassCastException- The method threw an unchecked exception that is not a subclass of EXClassCastException- The method returned a value that is not a subclass of R
-