doc / ch.tutteli.atrium.api.cc.infix.en_GB / nullableValue

nullableValue

infix fun <E, T : Iterable<E>> CheckerOption<E, T, InAnyOrderSearchBehaviour>.nullableValue(expectedOrNull: E): AssertionPlant<T> (source)

Finishes the specification of the sophisticated contains assertion where the expected nullable value shall be searched within the Iterable.

Delegates to the NullableValues(expectedOrNull).

Parameters

expectedOrNull - The value which is expectedOrNull to be contained within the Iterable.

Exceptions

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

Return
The AssertionPlant for which the assertion was built to support a fluent API.

infix fun <E, T : Iterable<E>> Builder<E, T, InAnyOrderOnlySearchBehaviour>.nullableValue(expectedOrNull: E): AssertionPlant<T> (source)

Finishes the specification of the sophisticated contains assertion where the Iterable must contain only the expected nullable value.

Delegates to the NullableValues(expectedOrNull).

Parameters

expectedOrNull - The nullable value which is expectedOrNull to be contained within the Iterable.

Exceptions

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

Return
The AssertionPlant for which the assertion was built to support a fluent API.

infix fun <E, T : Iterable<E>> Builder<E, T, InOrderOnlySearchBehaviour>.nullableValue(expectedOrNull: E): AssertionPlant<T> (source)

Finishes the specification of the sophisticated contains assertion where the Iterable needs to contain only the expected nullable value.

Delegates to the NullableValues(expectedOrNull).

Parameters

expectedOrNull - The nullable value which is expectedOrNull to be contained within the Iterable.

Exceptions

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

Return
The AssertionPlant for which the assertion was built to support a fluent API.