public static interface Assert.ThrowingRunnable
Assert.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.Modifier and Type | Method and Description |
---|---|
void |
run() |