Package org.junit.function
Interface ThrowingRunnable
public interface ThrowingRunnable
This interface facilitates the use of expectThrows from Java 8. It allows method references
to void methods (that declare checked exceptions) to be passed directly into expectThrows
without wrapping. It is not meant to be implemented directly.
- Since:
- 4.13
-
Method Summary
-
Method Details
-
run
- Throws:
Throwable
-