assertk / assertk / all

all

(common, jvm) fun <T> Assert<T>.all(message: String, body: Assert<T>.() -> Unit): Unit

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.

(common, jvm) fun <T> Assert<T>.all(body: Assert<T>.() -> Unit): Unit

All assertions in the given lambda are run.

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

Parameters

body - The body to execute.