diff --git a/misc/deprecated/domain/api/atrium-domain-api-common/src/main/kotlin/ch/tutteli/atrium/domain/creating/IterableAssertions.kt b/misc/deprecated/domain/api/atrium-domain-api-common/src/main/kotlin/ch/tutteli/atrium/domain/creating/IterableAssertions.kt index 843926b93..fb560ad99 100644 --- a/misc/deprecated/domain/api/atrium-domain-api-common/src/main/kotlin/ch/tutteli/atrium/domain/creating/IterableAssertions.kt +++ b/misc/deprecated/domain/api/atrium-domain-api-common/src/main/kotlin/ch/tutteli/atrium/domain/creating/IterableAssertions.kt @@ -18,7 +18,7 @@ import ch.tutteli.atrium.domain.creating.iterable.contains.searchbehaviours.NotS * * It loads the implementation lazily via [loadSingleService]. */ -//TODO 0.14.0 deprecate +@Deprecated("Use _logic from ch.tutteli.atrium.logic instead; will be removed with 1.0.0") val iterableAssertions by lazy { loadSingleService(IterableAssertions::class) } @@ -26,7 +26,10 @@ val iterableAssertions by lazy { loadSingleService(IterableAssertions::class) } * Defines the minimum set of assertion functions and builders applicable to [Iterable], * which an implementation of the domain of Atrium has to provide. */ -//TODO 0.14.0 deprecate +@Deprecated( + "Use IterableLikeAssertions from atrium-logic; will be removed with 1.0.0", + ReplaceWith("ch.tutteli.atrium.logic.IteratorAssertions") +) interface IterableAssertions { fun > containsBuilder(subjectProvider: SubjectProvider): IterableContains.Builder fun > containsNotBuilder(subjectProvider: SubjectProvider): IterableContains.Builder diff --git a/misc/deprecated/domain/builders/atrium-domain-builders-common/src/main/kotlin/ch/tutteli/atrium/domain/builders/migration/assertToExpect.kt b/misc/deprecated/domain/builders/atrium-domain-builders-common/src/main/kotlin/ch/tutteli/atrium/domain/builders/migration/assertToExpect.kt index 1c79e6397..fd5c43cf1 100644 --- a/misc/deprecated/domain/builders/atrium-domain-builders-common/src/main/kotlin/ch/tutteli/atrium/domain/builders/migration/assertToExpect.kt +++ b/misc/deprecated/domain/builders/atrium-domain-builders-common/src/main/kotlin/ch/tutteli/atrium/domain/builders/migration/assertToExpect.kt @@ -86,9 +86,8 @@ fun asSubExpect( * * Try to switch entirely to [Expect] as [Assert] along with this function will be removed with 1.0.0 */ -//TODO deprecate with 0.14.0 -//@Deprecated("Switch from Assert to Expect, this function was introduced in 0.9.0 to ease the migration from Assert to Expect; will be removed with 1.0.0") -@Suppress("DEPRECATION") +@Deprecated("Switch from Assert to Expect, this function was introduced in 0.9.0 to ease the migration from Assert to Expect; will be removed with 1.0.0") +@Suppress("DEPRECATION", "DeprecatedCallableAddReplaceWith") fun > A.asExpect(): Expect = DelegatingExpect(this, this.maybeSubject) @@ -100,9 +99,8 @@ fun > A.asExpect(): Expect = * * @returns The deprecated plant. */ -//TODO deprecate with 0.14.0 -//@Deprecated("Switch from Assert to Expect, this function was introduced in 0.9.0 to ease the migration from Assert to Expect; will be removed with 1.0.0") -@Suppress("DEPRECATION") +@Deprecated("Switch from Assert to Expect, this function was introduced in 0.9.0 to ease the migration from Assert to Expect; will be removed with 1.0.0") +@Suppress("DEPRECATION", "DeprecatedCallableAddReplaceWith") fun > A.asExpect(assertionCreator: Expect.() -> Unit): A { asExpect().addAssertionsCreatedBy(assertionCreator) return this