doc / ch.tutteli.atrium.assertions / DescriptiveAssertion

DescriptiveAssertion

interface DescriptiveAssertion : Assertion

The base interface for Assertions which consist of a representation of an expected result with a complementary description.

For instance, the assertion is not: null could be represented with this type where null is the representation and is not the complementary description.

Properties

description

abstract val description: Translatable

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

expected

open val expected: Any

representation

abstract val representation: Any

The representation of the expected result such as 1, null etc.

Inherited Functions

holds

abstract fun holds(): Boolean

Indicates whether the assertion holds or not.

Inheritors

BasicDescriptiveAssertion

class BasicDescriptiveAssertion : DescriptiveAssertion

A default implementation for DescriptiveAssertion which lazily evaluates holds.