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 a text (e.g. a String) as representation, then wrap it into a RawString via RawString.create and pass the RawString instead.