doc / ch.tutteli.atrium.assertions / EmptyNameAndSubjectAssertionGroup

EmptyNameAndSubjectAssertionGroup

abstract class EmptyNameAndSubjectAssertionGroup : AssertionGroup

Represents a base class for AssertionGroups which have an empty name and subject.

Constructors

<init>

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

Represents a base class for AssertionGroups which have an empty name and subject.

Properties

assertions

open val assertions: List<Assertion>

The assertions of this group, which are defined for subject.

name

open val name: Translatable

Untranslatable.EMPTY -- an empty string as Untranslatable.

subject

open val subject: Any

The empty string.

type

open val type: AssertionGroupType

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

Inherited Functions

holds

open fun holds(): <ERROR CLASS>

Holds if all its assertions hold.

Inheritors

ExplanatoryAssertionGroup

class ExplanatoryAssertionGroup : EmptyNameAndSubjectAssertionGroup

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 : EmptyNameAndSubjectAssertionGroup

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

InvisibleAssertionGroup

class InvisibleAssertionGroup : EmptyNameAndSubjectAssertionGroup

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