doc / ch.tutteli.atrium.api.fluent.en_GB / toBe

toBe

fun <T> Expect<T>.toBe(expected: T): Expect<T> (source)

Expects that the subject of the assertion is (equal to) expected.

Exceptions

AssertionError - Might throw an AssertionError if the assertion made is not correct.

Return
An Expect for the current subject of the assertion.

@JvmName("toBeNull") fun <T : BigDecimal> Expect<T?>.toBe(expected: Nothing?): Expect<T?> (source)

Expects that the subject of the assertion (a BigDecimal) is null.

Exceptions

AssertionError - Might throw an AssertionError if the assertion made is not correct.

Return
An Expect for the current subject of the assertion.