Uses of Interface
org.junit.function.ThrowingRunnable
-
Packages that use ThrowingRunnable Package Description org.junit Provides JUnit core classes and annotations.org.junit.rules -
-
Uses of ThrowingRunnable in org.junit
Methods in org.junit with parameters of type ThrowingRunnable Modifier and Type Method Description static <T extends java.lang.Throwable>
TAssert. assertThrows(java.lang.Class<T> expectedThrowable, ThrowingRunnable runnable)
Asserts thatrunnable
throws an exception of typeexpectedThrowable
when executed.static <T extends java.lang.Throwable>
TAssert. assertThrows(java.lang.String message, java.lang.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 ThrowingRunnable Modifier and Type Method Description void
ErrorCollector. checkThrows(java.lang.Class<? extends java.lang.Throwable> expectedThrowable, ThrowingRunnable runnable)
Adds a failure to the table ifrunnable
does not throw an exception of typeexpectedThrowable
when executed.
-