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 thatrunnablethrows an exception of typeexpectedThrowablewhen executed.static <T extends Throwable>
TAssert.assertThrows(String message, Class<T> expectedThrowable, ThrowingRunnable runnable) Asserts thatrunnablethrows an exception of typeexpectedThrowablewhen executed.