Builder

public abstract class Builder<RT extends Result<RT, AT, TT, ET>, AT extends Actual, TT extends Test<TT, ET, RT, AT>, ET extends Expected, BT extends Result.Builder<RT, AT, TT, ET, BT>> implements Result.Builder<RT, AT, TT, ET, BT>(source)

Inheritors

Constructors

Link copied to clipboard
protected void BasicResult.Builder(Environment environment)

Types

Link copied to clipboard
public abstract class Factory<RT extends Result<RT, AT, TT, ET>, AT extends Actual, TT extends Test<TT, ET, RT, AT>, ET extends Expected, BT extends Result.Builder<RT, AT, TT, ET, BT>> implements Result.Builder.Factory<RT, AT, TT, ET, BT>

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 BT actual(AT actual)
Sets the actual behavior of the result.
Link copied to clipboard
public abstract RT build()
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.