assertk.assertions / hasRootCause

hasRootCause

fun Assert<Throwable>.hasRootCause(cause: Throwable): Unit

Platform and version requirements: Common

Asserts the throwable is similar to the expected root cause, checking the type and message.