doc / ch.tutteli.atrium.assertions / BasicAssertionGroup

BasicAssertionGroup

data class BasicAssertionGroup : AssertionGroup

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

Properties

assertions

val assertions: List<Assertion>

The assertions of this group, which are defined for subject.

name

val name: Translatable

The name of the group.

subject

val subject: Any

The subject for which the assertions are defined.

type

val type: AssertionGroupType

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

Inherited Functions

holds

open fun holds(): <ERROR CLASS>

Holds if all its assertions hold.