atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.reporting.impl.verb / OptionsStepImpl

OptionsStepImpl

class OptionsStepImpl<T> : ExpectBuilder.OptionsStep<T>

Constructors

<init>

OptionsStepImpl(maybeSubject: Option<T>, assertionVerb: Translatable)

Properties

assertionVerb

val assertionVerb: Translatable

The previously defined assertion verb.

maybeSubject

val maybeSubject: Option<T>

The previously specified subject of the assertion.

Functions

withOptions

fun withOptions(expectOptions: ExpectOptions): ExpectBuilder.FinalStep<T>

Uses the given expectOptions.

withoutOptions

fun withoutOptions(): ExpectBuilder.FinalStep<T>

States explicitly that no optional ExpectOptions are defined, which means, build will create a new Expect based on the previously defined mandatory options but without any optional options or in other words, the default values are used for the optional options.

Inherited Functions

withOptions

open fun withOptions(configuration: ExpectBuilder.OptionsChooser.() -> Unit): ExpectBuilder.FinalStep<T>

Allows to define the ExpectOptions via an OptionsChooser-lambda which provides convenience functions.