doc / ch.tutteli.atrium.assertions / DescriptiveAssertion

DescriptiveAssertion

interface DescriptiveAssertion : Assertion

The base interface for Assertions which only consists of the expected result with a complementary description.

Properties

description

abstract val description: Translatable

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

expected

abstract val expected: Any

The expected result.

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.

LazyThreadUnsafeBasicAssertion

class LazyThreadUnsafeBasicAssertion : DescriptiveAssertion

Represents a DescriptiveAssertion which is evaluated lazily where the lazy loading is not thread safe.