main.kotlin.ch.tutteli.atrium.domain.robstoll.creating.AnyAssertionsDeprecatedImpl.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
@file:Suppress("DEPRECATION" /* TODO remove annotation with 1.0.0 */)
package ch.tutteli.atrium.domain.robstoll.creating
import ch.tutteli.atrium.creating.AssertionPlant
import ch.tutteli.atrium.creating.AssertionPlantNullable
import ch.tutteli.atrium.domain.creating.AnyAssertions
import ch.tutteli.atrium.domain.robstoll.lib.creating._isNotNull
import ch.tutteli.atrium.domain.robstoll.lib.creating._isNotNullBut
import ch.tutteli.atrium.domain.robstoll.lib.creating._isNullIfNullGivenElse
import ch.tutteli.atrium.domain.robstoll.lib.creating._isNullable
import kotlin.reflect.KClass
@Deprecated("Will be removed with 1.0.0")
abstract class AnyAssertionsDeprecatedImpl : AnyAssertions {
override fun isNullable(
plant: AssertionPlantNullable,
type: KClass,
expectedOrNull: T?
) = _isNullable(plant, type, expectedOrNull)
override fun isNotNull(
plant: AssertionPlantNullable,
type: KClass,
assertionCreator: AssertionPlant.() -> Unit
) = _isNotNull(plant, type, assertionCreator)
override fun isNotNullBut(
plant: AssertionPlantNullable,
type: KClass,
expected: T
) = _isNotNullBut(plant, type, expected)
override fun isNullIfNullGivenElse(
plant: AssertionPlantNullable,
type: KClass,
assertionCreatorOrNull: (AssertionPlant.() -> Unit)?
) = _isNullIfNullGivenElse(plant, type, assertionCreatorOrNull)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy