atrium-verbs-jvm / ch.tutteli.atrium.api.verbs

Package ch.tutteli.atrium.api.verbs

Types

AssertionVerb

enum class AssertionVerb : StringBasedTranslatable

The Translatables for the assertion functions assert, assertThat and expect.

Extensions for External Classes

ch.tutteli.atrium.creating.Expect

Functions

assert

fun <T> assert(subject: T): Expect<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.

assertThat

fun <T> assertThat(subject: T): Expect<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.

expect

fun <T> expect(subject: T): Expect<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.