doc / ch.tutteli.atrium.assertions.builders / RepresentationOnly / RepresentationStep / withRepresentation

withRepresentation

abstract fun withRepresentation(representation: Any?): RepresentationOnly.FinalStep

Uses the given representation as RepresentationOnlyAssertion.representation.

Notice, if you want to use text (a String which is treated as raw string in reporting) as representation, then wrap it into a Text and pass it instead.