public interface ThrowingRunnable
This interface facilitates the use of TestUtils.assertThrows(Class, ThrowingRunnable). It allows method references to void methods (that declare checked exceptions) to be passed directly into assertThrows without wrapping. It is not meant to be implemented directly.
Since:
4.13
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Run something potentially throwing a throwable.
  • Method Details

    • run

      void run() throws Throwable
      Run something potentially throwing a throwable.
      Throws:
      Throwable - if something fails