doc / ch.tutteli.atrium.logic.assertions.impl / LazyThreadUnsafeAssertionGroup

LazyThreadUnsafeAssertionGroup

class LazyThreadUnsafeAssertionGroup : AssertionGroup (source)

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

Constructors

<init>

LazyThreadUnsafeAssertionGroup(assertionCreator: () -> AssertionGroup)

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

Properties

assertions

val assertions: List<Assertion>

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

description

val description: Translatable

The description of the group.

representation

val representation: Any

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

type

val type: AssertionGroupType

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

Functions

holds

fun holds(): Boolean

Holds if all its assertions hold.