doc / ch.tutteli.atrium.logic / ComparableAssertions

ComparableAssertions

interface ComparableAssertions (source)

Collection of assertion functions and builders which are applicable to subjects with a Comparable type.

Functions

isEqualComparingTo

abstract fun <T1 : Comparable<T2>, T2> isEqualComparingTo(container: AssertionContainer<T1>, expected: T2): Assertion

isGreaterThan

abstract fun <T1 : Comparable<T2>, T2> isGreaterThan(container: AssertionContainer<T1>, expected: T2): Assertion

isGreaterThanOrEqual

abstract fun <T1 : Comparable<T2>, T2> isGreaterThanOrEqual(container: AssertionContainer<T1>, expected: T2): Assertion

isLessThan

abstract fun <T1 : Comparable<T2>, T2> isLessThan(container: AssertionContainer<T1>, expected: T2): Assertion

isLessThanOrEqual

abstract fun <T1 : Comparable<T2>, T2> isLessThanOrEqual(container: AssertionContainer<T1>, expected: T2): Assertion

isNotGreaterThan

abstract fun <T1 : Comparable<T2>, T2> isNotGreaterThan(container: AssertionContainer<T1>, expected: T2): Assertion

isNotLessThan

abstract fun <T1 : Comparable<T2>, T2> isNotLessThan(container: AssertionContainer<T1>, expected: T2): Assertion

Inheritors

DefaultComparableAssertions

class DefaultComparableAssertions : ComparableAssertions