doc / ch.tutteli.atrium.api.fluent.en_GB / withOptions

withOptions

fun <T> RootExpect<T>.withOptions(configuration: RootExpectBuilder.OptionsChooser<T>.() -> Unit): Expect<T> (source)

Uses the given configuration-lambda to create an RootExpectOptions which in turn is used to re-define (parts) of the existing configuration.

Return
An new Expect with the specified options for subject of this expectation.

fun <T> RootExpect<T>.withOptions(options: RootExpectOptions<T>): Expect<T> (source)
fun <T, R> FeatureExpect<T, R>.withOptions(options: FeatureExpectOptions<R>): Expect<R> (source)

Uses the given options to override (parts) of the existing configuration.

Return
An new Expect with the specified options for subject of this expectation.

fun <T, R> FeatureExpect<T, R>.withOptions(configuration: FeatureExpectOptionsChooser<R>.() -> Unit): Expect<R> (source)

Uses the given configuration-lambda to create a FeatureExpectOptions which in turn is used to re-define (parts) of the existing configuration.

Return
An new Expect with the specified options for subject of this expectation.