(Object receiver, Object... args)
| 59 | } |
| 60 | |
| 61 | public T call(Object receiver, Object... args) { |
| 62 | try { |
| 63 | return (T) this.method.invoke(receiver, args); |
| 64 | } catch (InvocationTargetException e) { |
| 65 | if (e.getCause() != null) { |
| 66 | e.getCause().printStackTrace(); |
| 67 | } else { |
| 68 | e.printStackTrace(); |
| 69 | } |
| 70 | } catch (Throwable e) { |
| 71 | e.printStackTrace(); |
| 72 | } |
| 73 | return null; |
| 74 | } |
| 75 | |
| 76 | public T callWithException(Object receiver, Object... args) throws Throwable { |
| 77 | try { |
no test coverage detected