data class AssertionGroup : IAssertionGroup
Represents a group of IAssertions -- it has a certain type, a name, a subject and of course assertions.
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. |
val assertions: List<IAssertion>
The assertions of this group, which are defined for subject. |
|
val name: ITranslatable
The name of the group. |
|
val subject: Any
The subject for which the assertions are defined. |
|
val type: IAssertionGroupType
The type of the group, e.g. RootAssertionGroupType. |
open fun holds(): <ERROR CLASS>
Holds if all its assertions hold. |