Package org.junit.function
Interface ThrowingRunnable
-
public interface ThrowingRunnableThis interface facilitates the use ofAssert.assertThrows(Class, ThrowingRunnable)from Java 8. It allows method references to void methods (that declare checked exceptions) to be passed directly intoassertThrowswithout wrapping. It is not meant to be implemented directly.- Since:
- 4.13
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrun()
-