Builder

public interface 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>>(source)

A type representing a builder for results.

Author

Dustin Glaser

Parameters

<RT>

the type of the result

<AT>

the type of the actual behavior

<TT>

the type of the test

<ET>

the type of the expected behavior

<BT>

the type of the builder

Inheritors

Types

Link copied to clipboard
public interface 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>>
A type representing a factory for builders.

Functions

Link copied to clipboard
public abstract 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 abstract BT exception(Throwable exception)
Sets the exception of the result.
Link copied to clipboard
public abstract BT test(TT test)
Sets the test of the result.