kotest-assertions / io.kotest.assertions / junit5AssertionFailedError

junit5AssertionFailedError

fun junit5AssertionFailedError(message: String, expected: Expected, actual: Actual, cause: Throwable?): Option<Throwable>

If JUnit5 is present, return an org.opentest4j.AssertionFailedError using the given message and expeted and actual values, otherwise returns None.

https://ota4j-team.github.io/opentest4j/docs/1.0.0/api/org/opentest4j/AssertionFailedError.html