OptionsStep
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.
Parameters
T
the type of the subject.
Inheritors
Functions
Link copied to clipboard
Uses the given rootExpectOptions.
open fun withOptions(configuration: RootExpectBuilder.OptionsChooser<T>.() -> Unit): RootExpectBuilder.FinalStep<T>
Allows to define the RootExpectOptions via an OptionsChooser-lambda which provides convenience functions.
Link copied to clipboard
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.