Uses of Interface
org.junit.function.ThrowingRunnable
Packages that use ThrowingRunnable
-
Uses of ThrowingRunnable in org.junit
Methods in org.junit with parameters of type ThrowingRunnableModifier and TypeMethodDescriptionstatic <T extends Throwable>
TAssert.assertThrows
(Class<T> expectedThrowable, ThrowingRunnable runnable) Asserts thatrunnable
throws an exception of typeexpectedThrowable
when executed.static <T extends Throwable>
TAssert.assertThrows
(String message, Class<T> expectedThrowable, ThrowingRunnable runnable) Asserts thatrunnable
throws an exception of typeexpectedThrowable
when executed. -
Uses of ThrowingRunnable in org.junit.rules
Methods in org.junit.rules with parameters of type ThrowingRunnableModifier and TypeMethodDescriptionvoid
ErrorCollector.checkThrows
(Class<? extends Throwable> expectedThrowable, ThrowingRunnable runnable) Adds a failure to the table ifrunnable
does not throw an exception of typeexpectedThrowable
when executed.