doc / ch.tutteli.atrium.api.verbs

Package ch.tutteli.atrium.api.verbs

Contains the out-of-the-box expectation verb expect.

Types

AssertionVerb

enum class AssertionVerb : StringBasedTranslatable

The Translatable for the assertion expect.

Functions

assert

fun <T> assert(subject: T): RootExpect<T>

Creates an Expect for the given subject.

fun <T> assert(subject: T, assertionCreator: Expect<T>.() -> Unit): Expect<T>

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.

fun <T, R> Expect<T>.assert(newSubject: R): FeatureExpect<T, R>

assertThat

fun <T> assertThat(subject: T): RootExpect<T>

Creates an Expect for the given subject.

fun <T> assertThat(subject: T, assertionCreator: Expect<T>.() -> Unit): Expect<T>

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.

fun <T, R> Expect<T>.assertThat(newSubject: R): FeatureExpect<T, R>

expect

fun <T> expect(subject: T): RootExpect<T>

Creates an Expect for the given subject.

fun <T> expect(subject: T, assertionCreator: Expect<T>.() -> Unit): Expect<T>

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.

fun <T, R> Expect<T>.expect(newSubject: R): FeatureExpect<T, R>