interface OptionsStep<T> (source)
Step which allows to override previously defined properties -- such as use a different assertion verb -- but also allows to define options where usually a default value is used, such as use a customer Reporter.
abstract val assertionVerb: <ERROR CLASS>
The previously defined assertion verb. |
|
abstract val maybeSubject: <ERROR CLASS><T>
The previously specified subject of the assertion. |
open fun withOptions(configuration: ExpectBuilder.OptionsChooser<T>.() -> Unit): ExpectBuilder.FinalStep<T>
Allows to define the ExpectOptions via an OptionsChooser-lambda which provides convenience functions. abstract fun withOptions(expectOptions: ExpectOptions<T>): ExpectBuilder.FinalStep<T>
Uses the given expectOptions. |
|
abstract fun withoutOptions(): ExpectBuilder.FinalStep<T>
States explicitly that no optional ExpectOptions are defined, which means, |
fun <T> create(maybeSubject: <ERROR CLASS><T>, assertionVerb: <ERROR CLASS>): ExpectBuilder.OptionsStep<T> |
class OptionsStepImpl<T> : ExpectBuilder.OptionsStep<T> |