main.kotlin.ch.tutteli.atrium.domain.robstoll.creating.IterableAssertionsImpl.kt Maven / Gradle / Ivy
//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.Expect
import ch.tutteli.atrium.creating.SubjectProvider
import ch.tutteli.atrium.domain.creating.IterableAssertions
import ch.tutteli.atrium.domain.robstoll.lib.creating._containsBuilder
import ch.tutteli.atrium.domain.robstoll.lib.creating._containsNotBuilder
import ch.tutteli.atrium.domain.robstoll.lib.creating._hasNext
import ch.tutteli.atrium.domain.robstoll.lib.creating._hasNotNext
import ch.tutteli.atrium.domain.robstoll.lib.creating._iterableAll
import ch.tutteli.atrium.domain.robstoll.lib.creating._max
import ch.tutteli.atrium.domain.robstoll.lib.creating._min
@Deprecated("Will be removed with 1.0.0")
class IterableAssertionsImpl : IterableAssertions, IterableAssertionsDeprecatedImpl() {
override fun > containsBuilder(subjectProvider: SubjectProvider) =
_containsBuilder(subjectProvider)
override fun > containsNotBuilder(subjectProvider: SubjectProvider) =
_containsNotBuilder(subjectProvider)
override fun > all(
expect: Expect,
assertionCreator: (Expect.() -> Unit)?
): Assertion = _iterableAll(expect, assertionCreator)
override fun > hasNext(expect: Expect): Assertion = _hasNext(expect)
override fun > hasNotNext(expect: Expect): Assertion = _hasNotNext(expect)
override fun , T : Iterable> min(expect: Expect) =
_min(expect)
override fun , T : Iterable> max(expect: Expect) =
_max(expect)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy