strikt-core / strikt.api / expectThat

expectThat

fun <T> expectThat(subject: T): DescribeableBuilder<T>

Start a chain of assertions over subject. This is the entry-point for the assertion API.

Parameters

subject - the subject of the chain of assertions.

Return
an assertion for subject.

fun <T> expectThat(subject: T, block: Builder<T>.() -> Unit): Unit

Evaluate a block of assertions over subject. This is the entry-point for the assertion API.

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.