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

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

There is a newer version: 1.0.0
Show newest version
@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