abstract fun compose(description: String, expected: Any?, assertions: Builder<T>.(T) -> Unit): CompoundAssertions<T>
Allows an assertion to be composed of multiple sub-assertions such as on fields of an object or elements of a collection.
The results of assertions made inside the assertions block are included under the overall assertion result.
description - a description for the condition the assertion
evaluates.
expected - the expected value of a comparison.
assertions - a group of assertions that will be evaluated against
the subject.
Return
the results of assertions made inside the assertions block used
to assertAll whether the overall assertion passes or fails.
open fun compose(description: String, assertions: Builder<T>.(T) -> Unit): CompoundAssertions<T>
Allows an assertion to be composed of multiple sub-assertions such as on fields of an object or elements of a collection.
The results of assertions made inside the assertions block are included under the overall assertion result.
description - a description for the condition the assertion
evaluates.
assertions - a group of assertions that will be evaluated against
the subject.
Return
the results of assertions made inside the assertions block used
to assertAll whether the overall assertion passes or fails.