Home
last modified time | relevance | path

Searched refs:thrown (Results 1 – 4 of 4) sorted by relevance

/cts/tools/vm-tests-tf/src/dot/junit/
DDxAbstractMain.java25 private static void checkError(Class<?> expectedErrorClass, Throwable thrown, in checkError() argument
27 if (expectedErrorClass != null && thrown == null) { in checkError()
29 } else if (expectedErrorClass == null && thrown != null) { in checkError()
30 fail("Unexpected error " + thrown, thrown); in checkError()
31 } else if (expectedErrorClass != null && thrown != null) { in checkError()
33 if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) { in checkError()
34 fail("Expected invocation target exception, but got " + thrown, thrown); in checkError()
36 thrown = thrown.getCause(); in checkError()
38 if (!expectedErrorClass.equals(thrown.getClass())) { in checkError()
40 thrown.getClass(), thrown); in checkError()
DDxTestCase.java23 private static void checkError(Class<?> expectedErrorClass, Throwable thrown, in checkError() argument
25 if (expectedErrorClass != null && thrown == null) { in checkError()
27 } else if (expectedErrorClass == null && thrown != null) { in checkError()
28 fail("Unexpected error " + thrown); in checkError()
29 } else if (expectedErrorClass != null && thrown != null) { in checkError()
31 if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) { in checkError()
32 fail("Expected invocation target exception, but got " + thrown); in checkError()
34 thrown = thrown.getCause(); in checkError()
36 if (!expectedErrorClass.equals(thrown.getClass())) { in checkError()
38 thrown.getClass()); in checkError()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DUtils.java82 final Throwable[] thrown = new Throwable[1]; in runOnMainThread() local
90 thrown[0] = t; in runOnMainThread()
100 if (thrown[0] != null) { in runOnMainThread()
101 throw thrown[0]; in runOnMainThread()
/cts/tools/cts-api-coverage/proto/
Dcts_report.proto317 // Captures an exception thrown during the test.