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

FinalStep

interface FinalStep<T> (source)
Deprecated: Use RootExpectBuilder.FinalStep from atrium-logic; will be removed latest with 0.17.0 (maybe earlier)

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 this expectation.

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>