Searched refs:expectedClass (Results 1 – 3 of 3) sorted by relevance
35 @NonNull Class<? extends Throwable> expectedClass) throws Throwable { in runAndAssertException() argument39 if (e.getClass().isAssignableFrom(expectedClass)) { in runAndAssertException()42 Log.e(LOG_TAG, "Expected: " + expectedClass.getName() + ", got: " in runAndAssertException()
56 @NonNull Class<? extends Throwable> expectedClass) throws Throwable { in assertException() argument60 if (e.getClass().isAssignableFrom(expectedClass)) { in assertException()63 Log.e(LOG_TAG, "Expected: " + expectedClass.getName() + ", got: " in assertException()
278 @NonNull Class<? extends Exception> expectedClass) { in verifyException() argument282 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()