atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.reporting.impl.verb / OptionsChooserImpl

OptionsChooserImpl

class OptionsChooserImpl : ExpectBuilder.OptionsChooser

Constructors

<init>

OptionsChooserImpl()

Functions

build

fun build(): ExpectOptions

withNullRepresentation

fun withNullRepresentation(representation: Any): Unit

Use the given representation as custom representation for null.

withReporter

fun withReporter(reporter: Reporter): Unit

Uses the given reporter instead of the default reporter.

withRepresentation

fun withRepresentation(representation: Any): Unit

Uses the given representation as representation of the subject instead of using the subject as such to represent itself.

withVerb

fun withVerb(verb: Translatable): Unit

Uses the given verb as assertion verb instead of the previously defined verb.

Inherited Functions

withTextRepresentation

open fun withTextRepresentation(representation: String): Unit

Wraps the given representation into a RawString and uses it as representation of the subject instead of the so far defined representation (which defaults to the subject as such).

withVerb

open fun withVerb(verb: String): Unit

Wraps the given verb into an Untranslatable and passes it to the overload which expects a Translatable -- this is then used as custom assertion verb instead of the previously defined verb.