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. -
Uses of ThrowingRunnable in org.junit.rules
Methods in org.junit.rules with parameters of type ThrowingRunnableModifier and TypeMethodDescriptionvoidErrorCollector.checkThrows(Class<? extends Throwable> expectedThrowable, ThrowingRunnable runnable) Adds a failure to the table ifrunnabledoes not throw an exception of typeexpectedThrowablewhen executed.