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

RepresentationStep

interface RepresentationStep (source)

Step which allows to specify an RepresentationOnlyAssertion.representation.

Properties

test

abstract val test: () -> Boolean

The previously defined test which is used to determine DescriptiveAssertion.holds.

Functions

withRepresentation

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

Uses the given representation as RepresentationOnlyAssertion.representation.

Companion Object Functions

create

fun create(test: () -> Boolean): RepresentationOnly.RepresentationStep

Factory method to create the RepresentationStep in the building process of an RepresentationOnlyAssertion.