Interface Assert.ThrowingRunnable
- Enclosing class:
Assert
public static interface Assert.ThrowingRunnable
This interface facilitates the use of
Assert.expectThrows(Class, Assert.ThrowingRunnable) from Java 8. It allows method
references to both void and non-void methods to be passed directly into expectThrows without
wrapping, even if they declare checked exceptions.
This interface is not meant to be implemented directly.
- Author:
- Alexandru Popescu
-
Method Summary
-
Method Details
-
run
-