BasicFail

public class BasicFail extends BasicTest<TT, ET, RT, AT> implements Fail(source)

A basic implementation an always failing test.

Author

Dustin Glaser

Constructors

Link copied to clipboard
public void BasicFail(Environment environment, Expected expected)
Constructs a new fail with the given environment.

Types

Link copied to clipboard
public class Builder extends BasicTest.Builder<TT, ET, RT, AT, BT> implements Fail.Builder

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
public ResultOfFail run()
Fails this test (there is no other option).
public ResultOfFail run(Actual actual, Throwable cause)
Fails this test (there is no other option) with the given cause.