deprecate DescriptionThrowableAssertion.NO_EXCEPTION_OCCURRED

This commit is contained in:
Robert Stoll
2020-03-06 08:33:59 +01:00
parent a9ccdfcc52
commit 5ed2648aba
2 changed files with 7 additions and 0 deletions

View File

@@ -12,6 +12,9 @@ enum class DescriptionThrowableAssertion(override val value: String) : StringBas
ReplaceWith("ch.tutteli.atrium.translations.DescriptionAnyAssertion.IS_A")
)
IS_A("ist eine"),
@Deprecated("Will be removed with 1.0.0",
ReplaceWith("ch.tutteli.atrium.translations.DescriptionFunLikeAssertion.NO_EXCEPTION_OCCURRED")
)
NO_EXCEPTION_OCCURRED("keine Exception wurde geworfen"),
NOT_CAUSED("❗❗ nicht durch eine andere Exception verursacht"),
//TODO rename to CAUSE with 1.0.0

View File

@@ -12,6 +12,10 @@ enum class DescriptionThrowableAssertion(override val value: String) : StringBas
ReplaceWith("ch.tutteli.atrium.translations.DescriptionAnyAssertion.IS_A")
)
IS_A("is a"),
@Deprecated(
"Will be removed with 1.0.0",
ReplaceWith("ch.tutteli.atrium.translations.DescriptionFunLikeAssertion.NO_EXCEPTION_OCCURRED")
)
NO_EXCEPTION_OCCURRED("no exception occurred"),
NOT_CAUSED("❗❗ not caused by another exception"),
//TODO rename to CAUSE with 1.0.0