Home | History | Annotate | Download | only in junit

Lines Matching refs:thrown

23     private static void checkError(Class<?> expectedErrorClass, Throwable thrown,
25 if (expectedErrorClass != null && thrown == null) {
27 } else if (expectedErrorClass == null && thrown != null) {
28 fail("Unexpected error " + thrown);
29 } else if (expectedErrorClass != null && thrown != null) {
31 if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) {
32 fail("Expected invocation target exception, but got " + thrown);
34 thrown = thrown.getCause();
36 if (!expectedErrorClass.equals(thrown.getClass())) {
38 thrown.getClass());