Home
last modified time | relevance | path

Searched refs:expectedClass (Results 1 – 3 of 3) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/
DUtil.java35 @NonNull Class<? extends Throwable> expectedClass) throws Throwable { in runAndAssertException() argument
39 if (e.getClass().isAssignableFrom(expectedClass)) { in runAndAssertException()
42 Log.e(LOG_TAG, "Expected: " + expectedClass.getName() + ", got: " in runAndAssertException()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DUtils.java56 @NonNull Class<? extends Throwable> expectedClass) throws Throwable { in assertException() argument
60 if (e.getClass().isAssignableFrom(expectedClass)) { in assertException()
63 Log.e(LOG_TAG, "Expected: " + expectedClass.getName() + ", got: " in assertException()
/cts/tests/pdf/src/android/graphics/pdf/cts/
DUtils.java278 @NonNull Class<? extends Exception> expectedClass) { in verifyException() argument
282 if (e.getClass().isAssignableFrom(expectedClass)) { in verifyException()
286 fail("Expected: " + expectedClass.getName() + ", got: " + e.getClass().getName()); in verifyException()
290 fail("Expected to have " + expectedClass.getName() + " exception thrown"); in verifyException()