unexpectedException

public static ActualException<T> unexpectedException<T extends Throwable>()(source)

Returns a behavior where an unexpected exception was thrown.

Return

the behavior

Parameters

<T>

the type of the expected exception