doc / ch.tutteli.atrium.assertions / AssertionGroup

AssertionGroup

data class AssertionGroup : IAssertionGroup

Represents a group of IAssertions -- it has a certain type, a name, a subject and of course assertions.

Constructors

<init>

AssertionGroup(type: IAssertionGroupType, name: ITranslatable, subject: Any, assertions: List<IAssertion>)

Represents a group of IAssertions with a certain type, a name, a subject and of course assertions.

Properties

assertions

val assertions: List<IAssertion>

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

name

val name: ITranslatable

The name of the group.

subject

val subject: Any

The subject for which the assertions are defined.

type

val type: IAssertionGroupType

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

Inherited Functions

holds

open fun holds(): <ERROR CLASS>

Holds if all its assertions hold.