Skip to content

Commit

Permalink
Mark new kotlin assetion methods as experimental
Browse files Browse the repository at this point in the history
Kotlin assertNull and assertNotNull methods are marked as
experimental.

Issue: junit-team#1866
  • Loading branch information
awelless committed Apr 23, 2023
1 parent c68ab03 commit 3029054
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fun assertAll(heading: String?, vararg executables: () -> Unit) =
* ```
* @see Assertions.assertNull
*/
@API(since = "5.10", status = STABLE)
@API(since = "5.10", status = EXPERIMENTAL)
fun assertNull(actual: Any?) {
contract {
returns() implies (actual == null)
Expand All @@ -122,7 +122,7 @@ fun assertNull(actual: Any?) {
* ```
* @see Assertions.assertNull
*/
@API(since = "5.10", status = STABLE)
@API(since = "5.10", status = EXPERIMENTAL)
fun assertNull(actual: Any?, message: String) {
contract {
returns() implies (actual == null)
Expand All @@ -143,7 +143,7 @@ fun assertNull(actual: Any?, message: String) {
* ```
* @see Assertions.assertNull
*/
@API(since = "5.10", status = STABLE)
@API(since = "5.10", status = EXPERIMENTAL)
fun assertNull(actual: Any?, messageSupplier: () -> String) {
contract {
returns() implies (actual == null)
Expand All @@ -166,7 +166,7 @@ fun assertNull(actual: Any?, messageSupplier: () -> String) {
* ```
* @see Assertions.assertNotNull
*/
@API(since = "5.10", status = STABLE)
@API(since = "5.10", status = EXPERIMENTAL)
fun <T> assertNotNull(actual: T?): T {
contract {
returns() implies (actual != null)
Expand All @@ -188,7 +188,7 @@ fun <T> assertNotNull(actual: T?): T {
* ```
* @see Assertions.assertNotNull
*/
@API(since = "5.10", status = STABLE)
@API(since = "5.10", status = EXPERIMENTAL)
fun <T> assertNotNull(actual: T?, message: String): T {
contract {
returns() implies (actual != null)
Expand All @@ -210,7 +210,7 @@ fun <T> assertNotNull(actual: T?, message: String): T {
* ```
* @see Assertions.assertNotNull
*/
@API(since = "5.10", status = STABLE)
@API(since = "5.10", status = EXPERIMENTAL)
fun <T> assertNotNull(actual: T?, messageSupplier: () -> String): T {
contract {
returns() implies (actual != null)
Expand Down

0 comments on commit 3029054

Please sign in to comment.