doc / ch.tutteli.atrium.domain.creating / ComparableAssertions

ComparableAssertions

interface ComparableAssertions (source)

Defines the minimum set of assertion functions and builders applicable to Comparable, which an implementation of the domain of Atrium has to provide.

Functions

isGreaterOrEquals

abstract fun <T1 : Comparable<T2>, T2> isGreaterOrEquals(plant: AssertionPlant<T1>, expected: T2): Assertion

isGreaterThan

abstract fun <T1 : Comparable<T2>, T2> isGreaterThan(plant: AssertionPlant<T1>, expected: T2): Assertion

isLessOrEquals

abstract fun <T1 : Comparable<T2>, T2> isLessOrEquals(plant: AssertionPlant<T1>, expected: T2): Assertion

isLessThan

abstract fun <T1 : Comparable<T2>, T2> isLessThan(plant: AssertionPlant<T1>, expected: T2): Assertion

Inheritors

ComparableAssertionsBuilder

object ComparableAssertionsBuilder : ComparableAssertions

Delegates inter alia to the implementation of ComparableAssertions. In detail, it implements ComparableAssertions by delegating to comparableAssertions which in turn delegates to the implementation via ServiceLoader.