infix fun <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInAnyOrderOnlySearchBehaviour>.the(values: Values<E>): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the expected values
need to be contained in Iterable where it does not matter in which order.
Delegates to the Objects(values).
values - The values which are expected to be contained within the Iterable.
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>> IterableContainsBuilder<E, T, IterableContainsInAnyOrderOnlySearchBehaviour>.the(objects: Objects<E>): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the expected objects
need to be contained in Iterable where it does not matter in which order.
objects - The objects which are expected to be contained within the Iterable.
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 : Any, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInAnyOrderOnlySearchBehaviour>.the(entries: Entries<E>): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the entry needs to be contained in the
Iterable which holds all assertions Entries.assertionCreator might create -- equally an entry for each further
Entries.otherAssertionCreators needs to be contained in the Iterable where it does not matter in which order the
entries appear.
Notice, that a first-wins strategy applies which means your Entries.assertionCreator functions -- which kind of
serve as identification functions -- should be ordered in such a way that the most specific identification function
appears first, not that a less specific function wins. For instance, given a setOf(1, 2) you should not search for
entries({ isGreaterThan(0) }, { toBe(1) }) but for entries({ toBe(1) }, { isGreaterThan(0) }) otherwise
isGreaterThan(0) matches 1 before toBe(1) would match it. As a consequence toBe(1) could only match the
entry which is left -- in this case 2 -- and of course this would fail.
entries - The method object containing the identification lambdas.
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>> IterableContainsBuilder<E, T, IterableContainsInOrderOnlySearchBehaviour>.the(values: Values<E>): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the expected values
need to be contained in Iterable in the specified order.
Delegates to the Objects(values).
values - The values which are expected to be contained within the Iterable.
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>> IterableContainsBuilder<E, T, IterableContainsInOrderOnlySearchBehaviour>.the(objects: Objects<E>): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the expected objects
need to be contained in Iterable in the specified order.
objects - The value which are expected to be contained within the Iterable.
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 : Any, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInOrderOnlySearchBehaviour>.the(entries: Entries<E>): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the entry needs to be contained in the
Iterable which holds all assertions Entries.assertionCreator might create -- equally an entry for each further
Entries.otherAssertionCreators, following the specified order, needs to be contained in the Iterable
entries - The method object containing the identification lambdas.
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.