doc / ch.tutteli.atrium.assertions / BasicDescriptiveAssertion

BasicDescriptiveAssertion

class BasicDescriptiveAssertion : DescriptiveAssertion

A default implementation for DescriptiveAssertion which lazily evaluates holds.

Constructors

<init>

BasicDescriptiveAssertion(description: Translatable, representation: Any, holds: Boolean)

Constructor overload with an eager BasicDescriptiveAssertion.holds.

BasicDescriptiveAssertion(description: Translatable, expected: Any, test: () -> Boolean)

Constructor overload with a lazy BasicDescriptiveAssertion.holds.

Properties

description

val description: Translatable

The complementary description to the expected result such as contains, is not etc.

expected

val expected: Any

The expected result.

Functions

holds

fun holds(): Boolean

Indicates whether the assertion holds or not.