doc / ch.tutteli.atrium.domain.builders.reporting / ExpectBuilder

ExpectBuilder

interface ExpectBuilder (source)
Deprecated: Use RootExpectBuilder from atrium-logic; will be removed latest with 0.17.0 (maybe earlier)

Defines the contract to create custom assertion verbs, Expect<T> respectively.

Types

AssertionVerbStep

interface AssertionVerbStep<T>

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

FinalStep

interface FinalStep<T>

Final step in the assertion verb building process, creates a new Expect based on the so far specified options.

OptionsChooser

interface OptionsChooser<T>

Helper lambda to specify ExpectOptions via convenience methods.

OptionsStep

interface OptionsStep<T>

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

Companion Object Functions

forSubject

fun <T> forSubject(subject: T): ExpectBuilder.AssertionVerbStep<T>

Entry point to use the ExpectBuilder which helps in creating an assertion verb for the given subject or in other words an Expect for the given subject.