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

FinalStep

interface FinalStep : AssertionBuilderFinalStep<DescriptiveAssertion>

Final step which creates a DescriptiveAssertion based on the previously defined test, description and representation.

Properties

description

abstract val description: Translatable

The previously defined DescriptiveAssertion.description.

representation

abstract val representation: Any

The previously defined DescriptiveAssertion.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, description: Translatable, representation: Any): Descriptive.FinalStep

Factory method to create the FinalStep in the building process of a DescriptiveAssertion based on the given test which indicates whether the assertion holds or not, a description as well as a representation.