BasicResultOfExceptionalCall

public class BasicResultOfExceptionalCall<T extends Exception> extends BasicResult<RT, AT, TT, ET> implements ResultOfExceptionalCall<T>(source)

Constructors

Link copied to clipboard
public void BasicResultOfExceptionalCall(Environment environment, TestOfExceptionalCall<T> test, ActualException<T> actual, Throwable exception, boolean successful)

Types

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

Properties

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

Functions

Link copied to clipboard
public AT actual()
Returns the actual of this result.
Link copied to clipboard
public Throwable cause()
If this result is not successful due to an exception, this method returns the causing exception.
Link copied to clipboard
public RT check(Context context, PreCommentSupplier<? super RT> preCommentSupplier)
If this result is not successful, this method throws an AssertionFailedError informing about the failure.
Link copied to clipboard
public T exception()
If the test resulted in the expected expected exception}, this methods returns this exception.
Link copied to clipboard
public ET expected()
Returns the expected behavior of this result.
Link copied to clipboard
public boolean successful()
Returns if the test was successful.
Link copied to clipboard
public TT test()
Returns the test this result belongs to.