OptionsStep

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.

Parameters

T

the type of the subject.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun withOptions(rootExpectOptions: RootExpectOptions<T>): RootExpectBuilder.FinalStep<T>

Uses the given rootExpectOptions.

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.

Properties

Link copied to clipboard

The previously defined expectation verb.

Link copied to clipboard
abstract val subject: T

The previously specified subject of the expectation.