doc / ch.tutteli.atrium.domain.builders.reporting / ExpectBuilder / OptionsChooser / withRepresentation

withRepresentation

abstract fun withRepresentation(representation: Any): Unit

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.