ResultOfFail

public interface ResultOfFail implements Result<RT, AT, TT, ET>(source)

A result of a fail.

Inheritors

Types

Link copied to clipboard
public interface Builder implements Result.Builder<RT, AT, TT, ET, BT>
A builder for results of fails.

Functions

Link copied to clipboard
public abstract AT actual()
Returns the actual of this result.
Link copied to clipboard
public abstract Throwable cause()
If this result is not successful due to an exception, this method returns the causing exception.
Link copied to clipboard
public abstract 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 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 abstract TT test()
Returns the test this result belongs to.