doc / ch.tutteli.atrium.api.verbs

Package ch.tutteli.atrium.api.verbs

Contains the out-of-the-box Assertion Verbs such as expect, assert and assertThat.

Types

AssertionVerb

enum class AssertionVerb : StringBasedTranslatable

The Translatables for the assertion functions assert, assertThat and 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>