doc / ch.tutteli.atrium.assertions / EmptyNameAndSubjectAssertionGroup

EmptyNameAndSubjectAssertionGroup

abstract class EmptyNameAndSubjectAssertionGroup : IAssertionGroup

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

Constructors

<init>

EmptyNameAndSubjectAssertionGroup(type: IAssertionGroupType, assertions: List<IAssertion>)

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

Properties

assertions

open val assertions: List<IAssertion>

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

name

open val name: ITranslatable

Untranslatable of an empty string.

subject

open val subject: Any

The empty string.

type

open val type: IAssertionGroupType

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 IAssertionGroup with an ExplanatoryAssertionGroupType, which means an IReporter should not show whether the assertions hold or not -- moreover holds always returns true.

IndentAssertionGroup

class IndentAssertionGroup : EmptyNameAndSubjectAssertionGroup

Represents an IAssertionGroup with an IIndentAssertionGroupType, 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 IAssertionGroup with an InvisibleAssertionGroupType, which means the grouping should be invisible in reporting.