interface OptionsStep<T>
(source)
Step which allows to override previously defined properties -- such as use a different expectation verb -- but also allows to define options where usually a default value is used, such as use a custom Reporter.
abstract val expectationVerb: Translatable
The previously defined expectation verb. |
|
abstract val subject: T
The previously specified subject of the expectation. |
open fun withOptions(configuration: RootExpectBuilder.OptionsChooser<T>.() -> Unit): RootExpectBuilder.FinalStep<T>
Allows to define the RootExpectOptions via an OptionsChooser-lambda which provides convenience functions. abstract fun withOptions(rootExpectOptions: RootExpectOptions<T>): RootExpectBuilder.FinalStep<T>
Uses the given rootExpectOptions. |
|
abstract fun withoutOptions(): RootExpectBuilder.FinalStep<T>
States explicitly that no optional RootExpectOptions are defined, which means, |
operator fun <T> invoke(subject: T, expectationVerb: Translatable): RootExpectBuilder.OptionsStep<T> |
class OptionsStepImpl<T> : RootExpectBuilder.OptionsStep<T> |