assertk / all

all

fun <T> Assert<T>.all(message: String = SoftFailure.defaultMessage, body: Assert<T>.() -> Unit): Unit

Platform and version requirements: Common

All assertions in the given lambda are run.

assertThat("test", name = "test").all {
  startsWith("t")
  endsWith("t")
}

Parameters

message - An optional message to show before all failures.

body - The body to execute.