All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.kotlin.ch.tutteli.atrium.logic.ComparableAssertions.kt Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package ch.tutteli.atrium.logic

import ch.tutteli.atrium.assertions.Assertion
import ch.tutteli.atrium.creating.AssertionContainer

/**
 * Collection of assertion functions and builders which are applicable to subjects with a [Comparable] type.
 */
interface ComparableAssertions {
    fun , T2 : Any?> isLessThan(container: AssertionContainer, expected: T2): Assertion

    fun , T2 : Any?> isLessThanOrEqual(container: AssertionContainer, expected: T2): Assertion

    fun , T2 : Any?> isNotGreaterThan(container: AssertionContainer, expected: T2): Assertion

    fun , T2 : Any?> isEqualComparingTo(
        container: AssertionContainer,
        expected: T2
    ): Assertion

    fun , T2 : Any?> isGreaterThanOrEqual(
        container: AssertionContainer,
        expected: T2
    ): Assertion

    fun , T2 : Any?> isNotLessThan(container: AssertionContainer, expected: T2): Assertion

    fun , T2 : Any?> isGreaterThan(container: AssertionContainer, expected: T2): Assertion
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy