interface AssertionGroup : Assertion
The base interface for Assertion groups, providing a default implementation for Assertion.holds
which returns true
if all its assertions hold.
object |
abstract val assertions: List<Assertion>
The assertions of this group, which are defined for the subject represented by representation. |
|
abstract val description: Translatable
The description of the group. |
|
open val |
|
abstract val representation: Any
A complementing representation to the description -- typically the subject for which the assertions are defined. |
|
open val |
|
abstract val type: AssertionGroupType
The type of the group, e.g. RootAssertionGroupType. |
open fun holds(): Boolean
Holds if all its assertions hold. |
data class
A default implementation for AssertionGroup -- it has a certain type, a description, a representation and of course assertions. |
|
open class
Represents a base class for AssertionGroups which have an empty description and representation. |
|
class LazyThreadUnsafeAssertionGroup : AssertionGroup
Represents an AssertionGroup which is evaluated lazily where the lazy loading is not thread safe. |