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

main.kotlin.ch.tutteli.atrium.domain.robstoll.creating.PairAssertionsImpl.kt Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
//TODO remove file with 1.0.0
@file:Suppress("DEPRECATION")

package ch.tutteli.atrium.domain.robstoll.creating

import ch.tutteli.atrium.assertions.Assertion
import ch.tutteli.atrium.creating.AssertionPlant
import ch.tutteli.atrium.creating.AssertionPlantNullable
import ch.tutteli.atrium.creating.Expect
import ch.tutteli.atrium.domain.creating.PairAssertions
import ch.tutteli.atrium.domain.robstoll.lib.creating._first
import ch.tutteli.atrium.domain.robstoll.lib.creating._nullableFirst
import ch.tutteli.atrium.domain.robstoll.lib.creating._nullableSecond
import ch.tutteli.atrium.domain.robstoll.lib.creating._second

@Deprecated("Will be removed with 1.0.0")
class PairAssertionsImpl : PairAssertions {
    override fun > first(expect: Expect) = _first(expect)
    override fun > second(expect: Expect) = _second(expect)


    override fun  first(
        plant: AssertionPlant>,
        assertionCreator: AssertionPlant.() -> Unit
    ): Assertion = _first(plant, assertionCreator)

    override fun  second(
        plant: AssertionPlant>,
        assertionCreator: AssertionPlant.() -> Unit
    ): Assertion = _second(plant, assertionCreator)

    override fun  nullableFirst(
        plant: AssertionPlant>,
        assertionCreator: AssertionPlantNullable.() -> Unit
    ): Assertion = _nullableFirst(plant, assertionCreator)

    override fun  nullableSecond(
        plant: AssertionPlant>,
        assertionCreator: AssertionPlantNullable.() -> Unit
    ): Assertion = _nullableSecond(plant, assertionCreator)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy