Builder

public final class Builder<T extends Exception> extends BasicResult.Builder<RT, AT, TT, ET, BT> implements ResultOfExceptionalCall.Builder<T>(source)

Constructors

Link copied to clipboard

Types

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

Properties

Link copied to clipboard
protected AT actual
Link copied to clipboard
protected final Environment environment
Link copied to clipboard
protected Throwable exception
Link copied to clipboard
protected boolean successful
Link copied to clipboard
protected TT test

Functions

Link copied to clipboard
public ResultOfExceptionalCall.Builder<T> actual(T exception, boolean successful)
Set the actual exception of the correct type and if this exception fulfils the expected throwable.
public BT actual(AT actual)
Sets the actual behavior of the result.
Link copied to clipboard
Builds a result for the given properties and returns it.
Link copied to clipboard
public BT exception(Throwable exception)
Sets the exception of the result.
Link copied to clipboard
public BT test(TT test)
Sets the test of the result.