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

ComparableAssertions

interface ComparableAssertions

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(subjectProvider: SubjectProvider<T1>, expected: T2): Assertion

isGreaterThan

abstract fun <T1 : Comparable<T2>, T2> isGreaterThan(subjectProvider: SubjectProvider<T1>, expected: T2): Assertion

isLessOrEquals

abstract fun <T1 : Comparable<T2>, T2> isLessOrEquals(subjectProvider: SubjectProvider<T1>, expected: T2): Assertion

isLessThan

abstract fun <T1 : Comparable<T2>, T2> isLessThan(subjectProvider: SubjectProvider<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 loadSingleService.