doc / ch.tutteli.atrium.api.verbs / assertThat

assertThat

fun <T> assertThat(subject: T): RootExpect<T> (source)
Deprecated: Switch to `expect` or use an own assertion verb; will be removed with 0.18.0

Creates an Expect for the given subject.

Parameters

subject - The subject for which we are going to postulate assertions.

Exceptions

AssertionError - in case an assertion does not hold.

Return
The newly created Expect.

fun <T> assertThat(subject: T, assertionCreator: Expect<T>.() -> Unit): Expect<T> (source)
Deprecated: Switch to `expect` or use an own assertion verb; will be removed with 0.18.0

Creates an Expect for the given subject and Expect.addAssertionsCreatedBy the given assertionCreator-lambda where the created Assertions are added as a group and reported as a whole.

Parameters

subject - The subject for which we are going to postulate assertions.

assertionCreator - Assertion group block with a non-fail fast behaviour.

Exceptions

AssertionError - in case an assertion does not hold.

Return
The newly created Expect.

fun <T, R> Expect<T>.assertThat(newSubject: R): FeatureExpect<T, R> (source)
Deprecated: `assertThat` should not be nested, use `feature` instead.