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

withRepresentation

fun withRepresentation(representation: Any): Unit

Overrides OptionsChooser.withRepresentation

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

Notice, if you want to use text (e.g. a String) as representation, then wrap it into a RawString via RawString.create and pass the RawString instead.