doc / ch.tutteli.atrium.assertions / IBasicAssertion

IBasicAssertion

interface IBasicAssertion : IAssertion

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

Properties

description

abstract val description: ITranslatable

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

BasicAssertion

class BasicAssertion : IBasicAssertion

A default implementation for IBasicAssertion which lazily evaluates holds.

LazyThreadUnsafeBasicAssertion

class LazyThreadUnsafeBasicAssertion : IBasicAssertion

Represents an IBasicAssertion which is evaluated lazily where the lazy loading is not thread safe.