doc / ch.tutteli.atrium.assertions / BasicAssertionGroup

BasicAssertionGroup

data class BasicAssertionGroup : AssertionGroup
Deprecated: Use AssertionGroup, do not rely on this specific type, will be made internal with 1.0.0

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

Constructors

<init>

BasicAssertionGroup(type: AssertionGroupType, description: Translatable, representation: Any, assertions: List<Assertion>)

A default implementation for AssertionGroup.

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

The representation of the subject for which the assertions are defined.

type

val type: AssertionGroupType

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

Inherited Properties

name

open val name: Translatable

subject

open val subject: Any

Inherited Functions

holds

open fun holds(): Boolean

Holds if all its assertions hold.