main.kotlin.ch.tutteli.atrium.domain.robstoll.creating.PairAssertionsImpl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atrium-domain-robstoll-common
Show all versions of atrium-domain-robstoll-common
robstoll's <[email protected]> implementation of the domain of Atrium as common module
//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