doc / ch.tutteli.atrium / contains

contains

fun <T : CharSequence> IAssertionPlant<T>.contains(expected: CharSequence): IAssertionPlant<T> (source)

Makes the assertion that IAssertionPlant.subject contains the expected.

Exceptions

AssertionError - Might throw an AssertionError if the made assertion does not hold.

Return
This plant to support a fluent-style API.

fun <T : CharSequence> IAssertionPlant<T>.contains(expected: CharSequence, vararg otherExpected: CharSequence): IAssertionPlant<T> (source)

Makes the assertion that IAssertionPlant.subject contains the expected and otherExpecteds (if defined).

Exceptions

AssertionError - Might throw an AssertionError if the made assertion does not hold.

Return
This plant to support a fluent-style API.

fun <T : CharSequence> IAssertionPlant<T>.contains(expected: Any, vararg otherExpected: Any): IAssertionPlant<T> (source)

Makes the assertion that IAssertionPlant.subject contains expected's toString representation and the toString representation of the otherExpected (if defined).

Exceptions

AssertionError - Might throw an AssertionError if the made assertion does not hold.

Return
This plant to support a fluent-style API.