doc / ch.tutteli.atrium.assertions / IAssertion

IAssertion

interface IAssertion

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

Functions

holds

abstract fun holds(): Boolean

Indicates whether the assertion holds or not.

Inheritors

IAssertionGroup

interface IAssertionGroup : IAssertion

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

IBasicAssertion

interface IBasicAssertion : IAssertion

The base interface for IAssertions which only consists of the expected result with a complementary description.

IExplanatoryAssertion

interface IExplanatoryAssertion : IAssertion

Represents an IAssertion which is typically used in an IAssertionGroup with a IExplanatoryAssertionGroupType and provides an explanation which is typically formatted by an IObjectFormatter in reporting.