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 Aug 10, 2023
1 parent edbe73f commit 252cad2
Showing 1 changed file with 6 additions and 6 deletions.
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 252cad2

Please sign in to comment.