doc / ch.tutteli.atrium.assertions.builders / DescriptiveAssertionFinalStep

DescriptiveAssertionFinalStep

interface DescriptiveAssertionFinalStep : AssertionBuilderFinalStep<DescriptiveAssertion> (source)

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.

Companion Object Functions

create

fun create(test: () -> Boolean, description: Translatable, representation: Any): DescriptiveAssertionFinalStep