@ SuppressWarnings ( "unchecked" ) private static < T > T doInvokeMethod ( Object tested , Class < ? > declaringClass , String methodToExecute , Object ... arguments ) throws Exception { Method methodToInvoke = findMethodOrThrowException ( tested , declaringClass , methodToExecute , arguments ) ; // Invoke test return ( T ) performMethodInvocation ( tested , methodToInvoke , arguments ) ; }
Do invoke method .