doc / ch.tutteli.atrium.verbs

Package ch.tutteli.atrium.verbs

Contains the @Deprecated out-of-the-box Assertion Verbs for Assert which is itself @Deprecated.

Types

AssertionVerb

enum class AssertionVerb : StringBasedTranslatable

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

Functions

assert

fun <T : Any> assert(subject: T): ReportingAssertionPlant<T>

Creates an AssertionPlant for the given subject.

fun <T : Any> assert(subject: T, assertionCreator: Assert<T>.() -> Unit): AssertionPlant<T>

Creates an AssertionPlant for the given subject and AssertionPlant.addAssertionsCreatedBy the given assertionCreator lambda where the created Assertions are added as a group and usually (depending on the configured Reporter) reportBuilder as a whole.

fun assert(act: () -> Unit): ThrowableThrown.Builder

Creates a ThrowableThrown.Builder for the given function act which is expected to throw a Throwable.

fun <T : Any, R : Any> Assert<T>.assert(newSubject: R): Assert<R>

assertThat

fun <T : Any> assertThat(subject: T): ReportingAssertionPlant<T>

Creates an AssertionPlant for the given subject.

fun <T : Any> assertThat(subject: T, assertionCreator: Assert<T>.() -> Unit): AssertionPlant<T>

Creates an AssertionPlant for the given subject and AssertionPlant.addAssertionsCreatedBy the given assertionCreator lambda where the created Assertions are added as a group and usually (depending on the configured Reporter) reportBuilder as a whole.

fun assertThat(act: () -> Unit): ThrowableThrown.Builder

Creates a ThrowableThrown.Builder for the given function act which is expected to throw a Throwable.

fun <T : Any, R : Any> Assert<T>.assertThat(newSubject: R): Assert<R>

expect

fun <T : Any> expect(subject: T): ReportingAssertionPlant<T>

Creates an AssertionPlant for the given subject.

fun <T : Any> expect(subject: T, assertionCreator: Assert<T>.() -> Unit): AssertionPlant<T>

Creates an AssertionPlant for the given subject and AssertionPlant.addAssertionsCreatedBy the given assertionCreator lambda where the created Assertions are added as a group and usually (depending on the configured Reporter) reportBuilder as a whole.

fun expect(act: () -> Unit): ThrowableThrown.Builder

Creates a ThrowableThrown.Builder for the given function act which is expected to throw a Throwable.

fun <T : Any, R : Any> Assert<T>.expect(newSubject: R): Assert<R>