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

FinalStep

interface FinalStep<T>

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

Parameters

T - the type of the subject.

Properties

assertionVerb

abstract val assertionVerb: Translatable

The previously defined assertion verb.

maybeSubject

abstract val maybeSubject: Option<T>

The previously specified subject of the assertion.

options

abstract val options: ExpectOptions<T>?

Either the previously specified ExpectOptions or null.

Functions

build

abstract fun build(): RootExpect<T>

Creates a new Expect based on the previously defined maybeOptions.

Companion Object Functions

create

fun <T> create(maybeSubject: Option<T>, assertionVerb: Translatable, options: ExpectOptions<T>?): ExpectBuilder.FinalStep<T>