doc / ch.tutteli.atrium.domain.builders.reporting / ExpectBuilder / OptionsStep / withOptions

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.

The function usually start with with... and are sometimes overloaded to ease the configuration.

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

Uses the given expectOptions.