fun <E, T : Iterable<E>> IterableContains.Builder<E, T, InOrderOnlyGroupedWithinSearchBehaviour>.inAnyOrder(firstGroup: Group<E>, secondGroup: Group<E>, vararg otherExpectedGroups: Group<E>): Expect<T>
Finishes the specification of the sophisticated contains
assertion where the expected firstGroup as well as
the secondGroup and optionally otherExpectedGroups of values need to be contained in Iterable
as only elements and in the specified order whereas the values within the groups can occur in any order.
firstGroup
- A group of values which have to appear at first within the Iterable.
secondGroup
- A group of values which have to appear after the values of the firstGroup within the Iterable.
otherExpectedGroups
- Additional groups of values which are expected to appear after the secondGroup within
Iterable whereas the groups have to appear in the given order.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
An Expect for the current subject of the assertion.
@JvmName("inAnyOrderEntries") fun <E : Any, T : Iterable<E?>> IterableContains.Builder<E?, T, InOrderOnlyGroupedWithinSearchBehaviour>.inAnyOrder(firstGroup: Group<(Expect<E>.() -> Unit)?>, secondGroup: Group<(Expect<E>.() -> Unit)?>, vararg otherExpectedGroups: Group<(Expect<E>.() -> Unit)?>): Expect<T>
Finishes the specification of the sophisticated contains
assertion where the expected firstGroup as well as
the secondGroup and optionally otherExpectedGroups of identification lambdas, identifying an entry,
need to be contained in Iterable as only elements and 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.
Have a look at entries for more information about identification lambdas.
firstGroup
- A group of identification lambdas which have to appear at first within the Iterable.
secondGroup
- A group of identification lambdas which have to appear after the values of the firstGroup
within the Iterable.
otherExpectedGroups
- Additional groups of values which are expected to appear after the secondGroup within
Iterable whereas the groups have to appear in the given order.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
An Expect for the current subject of the assertion.
fun <E, T> IterableLikeContains.EntryPointStep<E, T, InOrderOnlyGroupedWithinSearchBehaviour>.inAnyOrder(firstGroup: Group<E>, secondGroup: Group<E>, vararg otherExpectedGroups: Group<E>): Expect<T>
Finishes the specification of the sophisticated contains
assertion where the expected firstGroup as well as
the secondGroup and optionally otherExpectedGroups of values need to be contained in IterableLike
as only elements and in the specified order whereas the values within the groups can occur in any order.
firstGroup
- A group of values which have to appear at first within the IterableLike.
secondGroup
- A group of values which have to appear after the values of the firstGroup
within the IterableLike.
otherExpectedGroups
- Additional groups of values which are expected to appear after the secondGroup within
IterableLike whereas the groups have to appear in the given order.
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") fun <E : Any, T> IterableLikeContains.EntryPointStep<out E?, T, InOrderOnlyGroupedWithinSearchBehaviour>.inAnyOrder(firstGroup: Group<(Expect<E>.() -> Unit)?>, secondGroup: Group<(Expect<E>.() -> Unit)?>, vararg otherExpectedGroups: Group<(Expect<E>.() -> Unit)?>): Expect<T>
Finishes the specification of the sophisticated contains
assertion where the expected firstGroup as well as
the secondGroup and optionally otherExpectedGroups of identification lambdas, identifying an entry,
need to be contained in IterableLike as only elements and 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.
Have a look at entries for more information about identification lambdas.
firstGroup
- A group of identification lambdas which have to appear at first within the IterableLike.
secondGroup
- A group of identification lambdas which have to appear after the values of the firstGroup
within the IterableLike.
otherExpectedGroups
- Additional groups of values which are expected to appear after the secondGroup within
IterableLike whereas the groups have to appear in the given order.
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.
val <E, T : Iterable<E>> IterableContains.Builder<E, T, NoOpSearchBehaviour>.inAnyOrder: 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.
val <E, T> IterableLikeContains.EntryPointStep<E, T, NoOpSearchBehaviour>.inAnyOrder: 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.
val <K, V, T> MapLikeContains.EntryPointStep<K, V, T, NoOpSearchBehaviour>.inAnyOrder: 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