strikt-core / strikt.api / ExpectationBuilder / that

that

abstract fun <T> that(subject: T): DescribeableBuilder<T>

Start a chain of assertions over subject.

Parameters

subject - the subject of the chain of assertions.

Return
an assertion for subject.

abstract fun <T> that(subject: T, block: Builder<T>.() -> Unit): DescribeableBuilder<T>

Evaluate a block of assertions over subject.

Parameters

subject - the subject of the block of assertions.

block - a closure that can perform multiple assertions that will all be evaluated regardless of whether preceding ones pass or fail.

Return
an assertion for subject.