doc / ch.tutteli.atrium.logic.creating / RootExpectBuilder

RootExpectBuilder

interface RootExpectBuilder (source)

Defines the contract to create custom expectation verbs, RootExpect<T> respectively.

Types

ExpectationVerbStep

interface ExpectationVerbStep<T>

Step which allows to specify the expectation verb which shall be used.

FinalStep

interface FinalStep<T>

Final step in the RootExpect building process which creates a new RootExpect based on the so far specified options.

OptionsChooser

interface OptionsChooser<T>

Helper lambda to specify RootExpectOptions via convenience methods.

OptionsStep

interface OptionsStep<T>

Step which allows to override previously defined properties -- such as use a different expectation verb -- but also allows to define options where usually a default value is used, such as use a custom Reporter.

Companion Object Functions

forSubject

fun <T> forSubject(subject: T): RootExpectBuilder.ExpectationVerbStep<T>

Entry point to use the RootExpectBuilder which helps in creating an expectation verb for the given subject or in other words a RootExpect for the given subject.