try {
cause = new InvocationTargetException(null);
- Reflection.handleInvocationTargetException((InvocationTargetException)cause);
+ Reflection.handleWrappedException((InvocationTargetException)cause);
fail();
} catch (BugException e) {
assertTrue(cause == e.getCause());
try {
cause = new IllegalStateException("Test");
- Reflection.handleInvocationTargetException(new InvocationTargetException(cause));
+ Reflection.handleWrappedException(new InvocationTargetException(cause));
fail();
} catch (IllegalStateException e) {
assertTrue(cause == e);
try {
cause = new AbstractMethodError();
- Reflection.handleInvocationTargetException(new InvocationTargetException(cause));
+ Reflection.handleWrappedException(new InvocationTargetException(cause));
fail();
} catch (AbstractMethodError e) {
assertTrue(cause == e);
try {
cause = new IOException();
- Reflection.handleInvocationTargetException(new InvocationTargetException(cause));
+ Reflection.handleWrappedException(new InvocationTargetException(cause));
fail();
} catch (BugException e) {
assertTrue(cause == e.getCause());