doc / ch.tutteli.atrium.assertions / AssertionGroup

AssertionGroup

interface AssertionGroup : Assertion (source)

The base interface for Assertion groups, providing a default implementation for Assertion.holds which returns true if all its assertions hold.

Properties

assertions

abstract val assertions: List<Assertion>

The assertions of this group, which are defined for the subject represented by representation.

description

abstract val description: Translatable

The description of the group.

representation

abstract val representation: Any

A complementing representation to the description -- typically the subject for which the assertions are defined.

type

abstract val type: AssertionGroupType

The type of the group, e.g. RootAssertionGroupType.

Functions

holds

open fun holds(): Boolean

Holds if all its assertions hold.

Inheritors

LazyThreadUnsafeAssertionGroup

class LazyThreadUnsafeAssertionGroup : AssertionGroup

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