doc / ch.tutteli.atrium.assertions / AssertionGroup

AssertionGroup

interface AssertionGroup : Assertion

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

Types

Builder

object Builder

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.

name

open val name: Translatable

representation

abstract val representation: Any

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

subject

open val subject: Any

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

BasicAssertionGroup

data class BasicAssertionGroup : AssertionGroup

A default implementation for AssertionGroup -- it has a certain type, a description, a representation and of course assertions.

EmptyNameAndRepresentationAssertionGroup

open class EmptyNameAndRepresentationAssertionGroup : AssertionGroup

Represents a base class for AssertionGroups which have an empty description and representation.