doc / ch.tutteli.atrium.assertions / Assertion

Assertion

interface Assertion (source)

The base interface of all assertions, providing the method holds.

Functions

holds

abstract fun holds(): Boolean

Indicates whether the assertion holds or not.

Inheritors

AssertionGroup

interface AssertionGroup : Assertion

The base interface for Assertion groups, providing a default implementation for Assertion.holds which returns true if all its assertions hold.

DescriptiveAssertion

interface DescriptiveAssertion : Assertion

The base interface for Assertions which consist of a representation of an expected result with a complementary description.

ExplanatoryAssertion

interface ExplanatoryAssertion : Assertion

Represents an Assertion which can be used to explain/show an instance which is eventually formatted by an ObjectFormatter in reporting -- it needs to be a child of an AssertionGroup with an ExplanatoryAssertionGroupType.

RepresentationOnlyAssertion

interface RepresentationOnlyAssertion : Assertion

The base interface for Assertions which only consist of a representation (next to holds).