Builder

public interface Builder<T> implements Result.Builder<RT, AT, TT, ET, BT>(source)

return null;

A builder for results of objects.

Parameters

<T>

the type of the object under test

Inheritors

Types

Link copied to clipboard
public interface Factory<T> implements Result.Builder.Factory<RT, AT, TT, ET, BT>
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 ResultOfObject.Builder<T> object(T actual, boolean successful)
Sets the actual object and if the actual object fulfils the expected object.
Link copied to clipboard
public abstract BT test(TT test)
Sets the test of the result.