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

FinalStep

interface FinalStep : AssertionBuilderFinalStep<RepresentationOnlyAssertion> (source)

Final step which creates an RepresentationOnlyAssertion based on the previously defined representation.

Properties

representation

abstract val representation: Any?

The previously defined RepresentationOnlyAssertion.representation.

test

abstract val test: () -> Boolean

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

Inherited Functions

build

abstract fun build(): T

Creates and returns the new Assertion of type T.

Companion Object Functions

create

fun create(test: () -> Boolean, representation: Any?): RepresentationOnly.FinalStep

Factory method to create the FinalStep in the building process of a RepresentationOnlyAssertion based on the given test and representation.