doc / ch.tutteli.atrium.assertions / EmptyNameAndRepresentationAssertionGroup

EmptyNameAndRepresentationAssertionGroup

open class EmptyNameAndRepresentationAssertionGroup : AssertionGroup
Deprecated: Use AssertionGroup, do not rely on this specific type, will be made internal with 1.0.0

Represents a base class for AssertionGroups which have an empty description and representation.

Constructors

<init>

EmptyNameAndRepresentationAssertionGroup(type: AssertionGroupType, assertions: List<Assertion>)

Represents a base class for AssertionGroups which have an empty description and representation.

Properties

assertions

open val assertions: List<Assertion>

The assertions of this group.

description

open val description: Translatable

Untranslatable.EMPTY -- an empty string as Untranslatable.

representation

open val representation: Any

RawString.EMPTY -- an empty string as RawString.

type

open val type: AssertionGroupType

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

Inherited Properties

name

open val name: Translatable

subject

open val subject: Any

Inherited Functions

holds

open fun holds(): Boolean

Holds if all its assertions hold.

Inheritors

ExplanatoryAssertionGroup

class ExplanatoryAssertionGroup : EmptyNameAndRepresentationAssertionGroup

Represents an AssertionGroup with an ExplanatoryAssertionGroupType, which means a Reporter should not show whether the assertions hold or not -- moreover holds always returns true.

IndentAssertionGroup

class IndentAssertionGroup : EmptyNameAndRepresentationAssertionGroup

Represents an AssertionGroup with a DefaultIndentAssertionGroupType, which means the assertions shall be indented one extra level and description and representation shall be neglected (not reported to the output).

InvisibleAssertionGroup

class InvisibleAssertionGroup : EmptyNameAndRepresentationAssertionGroup

Represents an AssertionGroup with an InvisibleAssertionGroupType, which means the grouping should be invisible in reporting.