doc / ch.tutteli.atrium.logic.creating.impl / OptionsStepImpl

OptionsStepImpl

class OptionsStepImpl<T> : RootExpectBuilder.OptionsStep<T> (source)

Constructors

<init>

OptionsStepImpl(subject: T, expectationVerb: Translatable)

Properties

expectationVerb

val expectationVerb: Translatable

The previously defined expectation verb.

subject

val subject: T

The previously specified subject of the expectation.

Functions

withOptions

fun withOptions(rootExpectOptions: RootExpectOptions<T>): RootExpectBuilder.FinalStep<T>

Uses the given rootExpectOptions.

withoutOptions

fun withoutOptions(): RootExpectBuilder.FinalStep<T>

States explicitly that no optional RootExpectOptions 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: RootExpectBuilder.OptionsChooser<T>.() -> Unit): RootExpectBuilder.FinalStep<T>

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