Fail

public interface Fail implements Test<TT, ET, RT, AT>(source)

A always-failing test.

>

Inheritors

Types

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

Functions

Link copied to clipboard
public abstract ET expected()
Returns the expected behavior of this test.
Link copied to clipboard
public ResultOfFail run()
Fails this test (there is no other option).
public abstract ResultOfFail run(Actual actual, Throwable cause)
Fails this test (there is no other option) with the given cause.