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

OptionsStepImpl

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

Constructors

<init>

OptionsStepImpl(maybeSubject: <ERROR CLASS><T>, assertionVerb: <ERROR CLASS>)

Properties

assertionVerb

val assertionVerb: <ERROR CLASS>

The previously defined assertion verb.

maybeSubject

val maybeSubject: <ERROR CLASS><T>

The previously specified subject of the assertion.

Functions

withOptions

fun withOptions(expectOptions: ExpectOptions<T>): 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<T>.() -> Unit): ExpectBuilder.FinalStep<T>

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

Extension Functions

asExpect

fun <T, A> A.asExpect(): <ERROR CLASS><T>
fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A

Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable.