Package org.testng
Interface Assert.ThrowingRunnable
-
- Enclosing class:
- Assert
public static interface Assert.ThrowingRunnable
This interface facilitates the use ofAssert.expectThrows(java.lang.Class<T>, org.testng.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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
run()
-