298 fail("Exception should have been thrown"); |
298 fail("Exception should have been thrown"); |
299 } catch (InvocationTargetException | IllegalAccessException e) { |
299 } catch (InvocationTargetException | IllegalAccessException e) { |
300 if (verboseLocal.get() == Boolean.TRUE) { |
300 if (verboseLocal.get() == Boolean.TRUE) { |
301 System.out.println(e.getCause()); |
301 System.out.println(e.getCause()); |
302 } |
302 } |
303 assertEquals(e.getCause().getClass(), exceptionType); |
303 assertTrue(exceptionType.isAssignableFrom(e.getCause().getClass())); |
304 } |
304 } |
305 compiler.cleanup(); |
305 compiler.cleanup(); |
306 } |
306 } |
307 |
307 |
308 /** |
308 /** |