AssertionGroupDescriptionAndRepresentationOption

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val groupType: T

The previously defined AssertionGroup.type.

Functions

Link copied to clipboard
abstract fun withDescriptionAndRepresentation(description: Translatable, representation: Any?): R

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. Text.NULL).

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

Wraps the given description into an Untranslatable and delegates to the overload which expects Translatable.

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

Turns the given description into an Untranslatable and the given representationProvider into a LazyRepresentation and uses them as AssertionGroup.description, AssertionGroup.representation respectively.