doc / ch.tutteli.atrium.assertions / FixHoldsAssertionGroup

FixHoldsAssertionGroup

data class FixHoldsAssertionGroup : AssertionGroup

Represents a group of Assertions -- it has a certain type, a name, a subject, assertions and a fixed value for holds which does not depend on assertions (usually indirectly).

The intention behind this AssertionGroup is to use it when all assertions are AssertionGroups with an ExplanatoryAssertionGroupType.

Constructors

<init>

FixHoldsAssertionGroup(type: AssertionGroupType, name: Translatable, subject: Any, assertions: List<Assertion>, holds: Boolean)

Represents a group of Assertions -- it has a certain type, a name, a subject, assertions and a fixed value for holds which does not depend on assertions (usually indirectly).

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.

Functions

holds

fun holds(): Boolean

Holds if all its assertions hold.