Package org.testng

Interface Assert.ThrowingRunnable

Enclosing class:
Assert

public static interface Assert.ThrowingRunnable
This interface facilitates the use of 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.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()