AssertionGroup

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

Properties

Link copied to clipboard
abstract val assertions: List<Assertion>

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

Link copied to clipboard

The description of the group.

Link copied to clipboard
abstract val representation: Any

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

Link copied to clipboard
abstract val type: AssertionGroupType

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

Functions

Link copied to clipboard
open override fun holds(): Boolean

Holds if all its assertions hold.