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()
1653 private void handleClassSpecificGetPropertyExceptions(Exception e, Class<?> expectedClass, in handleClassSpecificGetPropertyExceptions() argument1656 if (mPropertyType.equals(expectedClass)) { in handleClassSpecificGetPropertyExceptions()1657 assertWithMessage("getProperty for " + expectedClass + " class should not throw" in handleClassSpecificGetPropertyExceptions()1667 private void verifyClassSpecificGetPropertyResults(T value, Class<?> expectedClass, in verifyClassSpecificGetPropertyResults() argument1669 if (!mPropertyType.equals(expectedClass)) { in verifyClassSpecificGetPropertyResults()1670 assertWithMessage("getProperty for " + expectedClass + " class should throw" in verifyClassSpecificGetPropertyResults()