infix fun <E, T : Iterable<E>> IterableContains.Builder<E, T, InOrderOnlyGroupedWithinSearchBehaviour>.inAny(order: Order<E, Group<E>>): Expect<T>
Finishes the specification of the sophisticated contains
assertion where the expected Order.firstGroup as well as
the Order.secondGroup and optionally Order.otherExpectedGroups of values need to be
contained in Iterable in the specified order whereas the values within the groups can occur in any order.
order
- A parameter object containing the different groups which have to appear in order in the Iterable
-- use order(group, group, ...)
to create an Order where group is either value(e)
or values(e, ...)
;
so a call could look as follows: `inAny order(values(1, 2), value(2), values(3, 2))
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
An Expect for the current subject of the assertion.
@JvmName("inAnyOrderEntries") infix fun <E : Any, T : Iterable<E?>> IterableContains.Builder<E?, T, InOrderOnlyGroupedWithinSearchBehaviour>.inAny(order: Order<(Expect<E>.() -> Unit)?, Group<(Expect<E>.() -> Unit)?>>): Expect<T>
Finishes the specification of the sophisticated contains
assertion where the expected Order.firstGroup as well as
the Order.secondGroup and optionally Order.otherExpectedGroups of identification lambdas, identifying an entry,
need to be contained in Iterable in the specified order whereas the identification lambdas within the groups
can occur in any order.
An identification lambda can also be defined as null
in which case it matches an entry which is null
as well.
order
- A parameter object containing the different groups which have to appear in order in the Iterable
-- use order(group, group, ...)
to create an Order where group is either entry { ... }
or
entries({ ... }, ...)
; so a call could look as follows:
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
An Expect for the current subject of the assertion.
infix fun <E, T : Iterable<E>> IterableContains.Builder<E, T, NoOpSearchBehaviour>.inAny(order: order): IterableContains.Builder<E, T, InAnyOrderSearchBehaviour>
Defines that the search behaviour "find entries in any order
in the Iterable" shall be applied to this
sophisticated contains
in Iterable assertion.
Return
The newly created builder.
infix fun <E, T> IterableLikeContains.EntryPointStep<E, T, InOrderOnlyGroupedWithinSearchBehaviour>.inAny(order: Order<E, Group<E>>): Expect<T>
Finishes the specification of the sophisticated contains
assertion where the expected Order.firstGroup as well as
the Order.secondGroup and optionally Order.otherExpectedGroups of values need to be
contained in IterableLike in the specified order whereas the values within the groups can occur in any order.
order
- A parameter object containing the different groups which have to appear in order in the IterableLike
-- use order(group, group, ...)
to create an Order where group is either value(e)
or values(e, ...)
;
so a call could look as follows: `inAny order(values(1, 2), value(2), values(3, 2))
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
An Expect for the current subject of the assertion.
Since
0.14.0 -- API existed for Iterable but not for IterableLike.
@JvmName("inAnyOrderEntries") infix fun <E : Any, T> IterableLikeContains.EntryPointStep<out E?, T, InOrderOnlyGroupedWithinSearchBehaviour>.inAny(order: Order<(Expect<E>.() -> Unit)?, Group<(Expect<E>.() -> Unit)?>>): Expect<T>
Finishes the specification of the sophisticated contains
assertion where the expected Order.firstGroup as well as
the Order.secondGroup and optionally Order.otherExpectedGroups of identification lambdas, identifying an entry,
need to be contained in IterableLike in the specified order whereas the identification lambdas within the groups
can occur in any order.
An identification lambda can also be defined as null
in which case it matches an entry which is null
as well.
order
- A parameter object containing the different groups which have to appear in order in the IterableLike
-- use order(group, group, ...)
to create an Order where group is either entry { ... }
or
entries({ ... }, ...)
; so a call could look as follows:
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
An Expect for the current subject of the assertion.
Since
0.14.0 -- API existed for Iterable but not for IterableLike.
infix fun <E, T> IterableLikeContains.EntryPointStep<E, T, NoOpSearchBehaviour>.inAny(order: order): IterableLikeContains.EntryPointStep<E, T, InAnyOrderSearchBehaviour>
Defines that the search behaviour "find entries in any order
in the IterableLike" shall be applied to this
sophisticated contains
in IterableLike assertion.
Return
The newly created builder.
Since
0.14.0 -- API existed for Iterable but not for IterableLike.
infix fun <K, V, T> MapLikeContains.EntryPointStep<K, V, T, NoOpSearchBehaviour>.inAny(order: order): MapLikeContains.EntryPointStep<K, V, T, InAnyOrderSearchBehaviour>
Defines that the search behaviour "find entries in any order
in the MapLike" shall be applied to this
sophisticated contains
in MapLike assertion.
Return
The newly created builder.
Since
0.15.0