doc / ch.tutteli.atrium.assertions / BasicDescriptiveAssertion

BasicDescriptiveAssertion

class BasicDescriptiveAssertion : DescriptiveAssertion (source)
Deprecated: Use DescriptiveAssertion, do not rely on this specific type, will be made internal with 1.0.0

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, representation: Any, test: () -> Boolean)

Constructor overload with a lazy BasicDescriptiveAssertion.holds.

Properties

description

val description: Translatable

The BasicDescriptiveAssertion.description.

representation

val representation: Any

The BasicDescriptiveAssertion.representation.

Inherited Properties

expected

open val expected: Any

Functions

holds

fun holds(): Boolean

Indicates whether the assertion holds or not.