Home | History | Annotate | Download | only in junit

Lines Matching refs:thrown

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