atrium-impl-common / ch.tutteli.atrium.assertions / AssertionGroup

AssertionGroup

data class AssertionGroup : IAssertionGroup

Represents a group of IAssertions identified by a name and an associated subject.

Constructors

<init>

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

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.

Inherited Functions

holds

open fun holds(): Boolean

Holds if all its assertions hold.