TestOfExceptionalCall

public interface TestOfExceptionalCall<T extends Exception> implements Test<TT, ET, RT, AT>(source)

A type for testing the throwing behavior of callables.

Author

Dustin Glaser

Parameters

<T>

the type of the expected exception

Inheritors

Types

Link copied to clipboard
public interface Builder<T extends Exception> implements Test.Builder<TT, ET, RT, AT, BT>

Functions

Link copied to clipboard
public abstract ET expected()
Returns the expected behavior of this test.
Link copied to clipboard
public abstract ResultOfExceptionalCall<T> run(Callable callable)
Tests if the callable throws an exception and if the exception is as expected.