package org.junit.function;

This interface facilitates the use of Assert.assertThrows(Class<Throwable>, ThrowingRunnable) from Java 8. It allows method references to void methods (that declare checked exceptions) to be passed directly into assertThrows without wrapping. It is not meant to be implemented directly.
Since:4.13
/** * This interface facilitates the use of * {@link org.junit.Assert#assertThrows(Class, ThrowingRunnable)} from Java 8. It allows method * references to void methods (that declare checked exceptions) to be passed directly into * {@code assertThrows} * without wrapping. It is not meant to be implemented directly. * * @since 4.13 */
public interface ThrowingRunnable { void run() throws Throwable; }