Searched defs:assertThrows (Results 1 – 5 of 5) sorted by relevance
39 public static <T extends Exception> void assertThrows(Class<T> exception, Runnable r) { in assertThrows() method in EvenMoreAsserts43 public static <T extends Exception> void assertThrows(String message, Class<T> exception, in assertThrows() method in EvenMoreAsserts
39 fun <T : Exception> assertThrows(expected: Class<T>, block: ThrowingRunnable): T { in assertThrows() method43 fun <T : Exception> assertThrows(msg: String, expected: Class<T>, block: ThrowingRunnable): T { in assertThrows() method
188 assertThrows(() -> { in startActivityForResult_tooManyRequests_throwsError() method210 assertThrows(() -> { in startIntentSenderForResult_tooManyRequests_throwsError() method
115 private static void assertThrows(Class<? extends Throwable> exceptionClass, in assertThrows() method in BugStorageUtilsTest
1200 private static <T extends Exception> void assertThrows(Class<T> clazz, Runnable r) { in assertThrows() method in MediaProviderTest