BasicTestOfExceptionalCall

public class BasicTestOfExceptionalCall<T extends Exception> extends BasicTest<TT, ET, RT, AT> implements TestOfExceptionalCall<T>(source)

A basic implementation of a test of a throwable call.

Parameters

<T>

the type of the expected exception

Constructors

Link copied to clipboard
public void BasicTestOfExceptionalCall(Environment environment, ExpectedException<T> expected)
Constructs a new test of a throwable call with the given environment and expected exception.

Types

Link copied to clipboard
public final class Builder<T extends Exception> extends BasicTest.Builder<TT, ET, RT, AT, BT> implements TestOfExceptionalCall.Builder<T>

Functions

Link copied to clipboard
public final Environment environment()
Returns the environment used by this test.
Link copied to clipboard
public final ET expected()
Returns the expected behavior of this test.
Link copied to clipboard
Tests if the callable throws an exception and if the exception is as expected.