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 only consist of a representation of an expected result with a complementary description.

ExplanatoryAssertion

interface ExplanatoryAssertion : Assertion

Represents an Assertion which is typically used in an AssertionGroup with an ExplanatoryAssertionGroupType and provides an explanation which is typically formatted by an ObjectFormatter in reporting.