Interface TestOfExceptionalCall<T extends Exception>

Type Parameters:
T - the type of the expected exception
All Superinterfaces:
Test<TestOfExceptionalCall<T>,ExpectedException<T>,ResultOfExceptionalCall<T>,ActualException<T>>
All Known Implementing Classes:
BasicTestOfExceptionalCall

public interface TestOfExceptionalCall<T extends Exception> extends Test<TestOfExceptionalCall<T>,ExpectedException<T>,ResultOfExceptionalCall<T>,ActualException<T>>

A type for testing the throwing behavior of callables.

  • Method Details

    • run

      Tests if the callable throws an exception and if the exception is as expected.
      Parameters:
      callable - the callable under test
      Returns:
      the result of the test