doc / ch.tutteli.atrium.assertions.builders / AssertionGroupDescriptionAndRepresentationOption / withDescriptionAndRepresentation

withDescriptionAndRepresentation

open fun withDescriptionAndRepresentation(description: Translatable, representationProvider: () -> Any?): R (source)

Uses the given description as AssertionGroup.description and representationProvider to create a LazyRepresentation which is used as AssertionGroup.representation.

abstract fun withDescriptionAndRepresentation(description: Translatable, representation: Any?): R (source)

Uses the given description as AssertionGroup.description and representation as AssertionGroup.representation unless representation is null in which case a representation for null is used (e.g. RawString.NULL).

Use the overload which expects a representation provider in case the computation is expensive.