doc / ch.tutteli.atrium.assertions / ExplanatoryAssertionGroup

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.

Constructors

<init>

ExplanatoryAssertionGroup(type: IExplanatoryAssertionGroupType, explanatoryAssertions: List<IAssertion>)

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

Inherited 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.

Functions

holds

fun holds(): Boolean

Holds if all its assertions hold.