|
atLeast
|
fun <E, T : Iterable<E>, S : InAnyOrderSearchBehaviour> Builder<E, T, S>.atLeast(times: Int): AtLeastCheckerOption<E, T, S>
Restricts a contains assertion by specifying that the number of occurrences of the entry which we are looking
for occurs at least number of times within the Iterable.
|
|
atMost
|
fun <E, T : Iterable<E>, S : InAnyOrderSearchBehaviour> Builder<E, T, S>.atMost(times: Int): AtMostCheckerOption<E, T, S>
Restricts a contains assertion by specifying that the number of occurrences of the entry which we
are looking for occurs at least once but at most number of times within the Iterable.
|
|
entries
|
fun <E : Any, T : Iterable<E?>> Builder<E?, T, InAnyOrderOnlySearchBehaviour>.entries(assertionCreatorOrNull: (Assert<E>.() -> Unit)?, vararg otherAssertionCreatorsOrNulls: (Assert<E>.() -> Unit)?): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where an entry needs to be contained in the
Iterable which holds all assertions assertionCreatorOrNull might create or needs to be null in case
assertionCreatorOrNull is defined as null -- likewise an entry for each
otherAssertionCreatorsOrNulls needs to be contained in the Iterable where it does not matter in which order the
entries appear but only as many entries should be returned by the Iterable as assertion creators are defined.
fun <E : Any, T : Iterable<E?>> Builder<E?, T, InOrderOnlySearchBehaviour>.entries(assertionCreatorOrNull: (Assert<E>.() -> Unit)?, vararg otherAssertionCreatorsOrNulls: (Assert<E>.() -> Unit)?): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the Iterable needs to contain only an
entry which holds all assertions assertionCreatorOrNull might create or is null in case assertionCreatorOrNull
is defined as null and likewise a further entry for each
otherAssertionCreatorsOrNulls (if given) whereas the entries have to appear in the specified order.
|
|
entry
|
fun <E : Any, T : Iterable<E?>> Builder<E?, T, InAnyOrderOnlySearchBehaviour>.entry(assertionCreatorOrNull: (Assert<E>.() -> Unit)?): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the Iterable needs to contain only one
entry which holds all assertions created by the given assertionCreatorOrNull or is null in case
assertionCreatorOrNull is defined as null.
fun <E : Any, T : Iterable<E?>> Builder<E?, T, InOrderOnlySearchBehaviour>.entry(assertionCreatorOrNull: (Assert<E>.() -> Unit)?): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the Iterable needs to contain only a
single entry which holds all assertions created by the given assertionCreatorOrNull or needs to be null
in case assertionCreatorOrNull is defined as null.
|
|
exactly
|
fun <E, T : Iterable<E>, S : InAnyOrderSearchBehaviour> Builder<E, T, S>.exactly(times: Int): ExactlyCheckerOption<E, T, S>
Restricts a contains assertion by specifying that the number of occurrences of the entry which we
are looking for occurs exactly number of times within the Iterable.
|
|
grouped
|
val <E, T : Iterable<E>> Builder<E, T, InOrderOnlySearchBehaviour>.grouped: Builder<E, T, InOrderOnlyGroupedSearchBehaviour>
Defines that the Iterable contains in order only groups of entries
whereas the order within the group is specified as next step.
|
|
inAnyOrder
|
fun <E, T : Iterable<E>> Builder<E, T, InOrderOnlyGroupedWithinSearchBehaviour>.inAnyOrder(firstGroup: Group<E>, secondGroup: Group<E>, vararg otherExpectedGroups: Group<E>): AssertionPlant<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.
fun <E : Any, T : Iterable<E?>> Builder<E?, T, InOrderOnlyGroupedWithinSearchBehaviour>.inAnyOrder(firstGroup: Group<(Assert<E>.() -> Unit)?>, secondGroup: Group<(Assert<E>.() -> Unit)?>, vararg otherExpectedGroups: Group<(Assert<E>.() -> Unit)?>): AssertionPlant<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.
val <E, T : Iterable<E>> Builder<E, T, NoOpSearchBehaviour>.inAnyOrder: 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.
|
|
inOrder
|
val <E, T : Iterable<E>> Builder<E, T, NoOpSearchBehaviour>.inOrder: Builder<E, T, InOrderSearchBehaviour>
Defines that the search behaviour "find entries in order in the Iterable" shall be applied to this
sophisticated contains in Iterable assertion.
|
|
notOrAtMost
|
fun <E, T : Iterable<E>, S : InAnyOrderSearchBehaviour> Builder<E, T, S>.notOrAtMost(times: Int): NotOrAtMostCheckerOption<E, T, S>
Restricts a contains assertion by specifying that the number of occurrences of the entry which we
are looking for occurs not at all or at most number of times within the Iterable.
|
|
nullableEntries
|
fun <E : Any, T : Iterable<E?>> Builder<E?, T, InAnyOrderOnlySearchBehaviour>.nullableEntries(assertionCreatorOrNull: (Assert<E>.() -> Unit)?, vararg otherAssertionCreatorsOrNulls: (Assert<E>.() -> Unit)?): AssertionPlant<T>
fun <E : Any, T : Iterable<E?>> Builder<E?, T, InOrderOnlySearchBehaviour>.nullableEntries(assertionCreatorOrNull: (Assert<E>.() -> Unit)?, vararg otherAssertionCreatorsOrNulls: (Assert<E>.() -> Unit)?): AssertionPlant<T> |
|
nullableEntry
|
infix fun <E : Any, T : Iterable<E?>> Builder<E?, T, InAnyOrderOnlySearchBehaviour>.nullableEntry(assertionCreatorOrNull: (Assert<E>.() -> Unit)?): AssertionPlant<T>
infix fun <E : Any, T : Iterable<E?>> Builder<E?, T, InOrderOnlySearchBehaviour>.nullableEntry(assertionCreatorOrNull: (Assert<E>.() -> Unit)?): AssertionPlant<T> |
|
nullableValue
|
infix fun <E, T : Iterable<E>> Builder<E, T, InAnyOrderOnlySearchBehaviour>.nullableValue(expectedOrNull: E): AssertionPlant<T>
infix fun <E, T : Iterable<E>> Builder<E, T, InOrderOnlySearchBehaviour>.nullableValue(expectedOrNull: E): AssertionPlant<T> |
|
nullableValues
|
fun <E, T : Iterable<E>> Builder<E, T, InAnyOrderOnlySearchBehaviour>.nullableValues(expectedOrNull: E, vararg otherExpectedOrNulls: E): AssertionPlant<T>
fun <E, T : Iterable<E>> Builder<E, T, InOrderOnlySearchBehaviour>.nullableValues(expectedOrNull: E, vararg otherExpectedOrNulls: E): AssertionPlant<T> |
|
only
|
val <E, T : Iterable<E>> Builder<E, T, InAnyOrderSearchBehaviour>.only: Builder<E, T, InAnyOrderOnlySearchBehaviour>
Defines that the constraint "only the specified entries exist in the Iterable" shall be applied to this
sophisticated contains Iterable assertion.
val <E, T : Iterable<E>> Builder<E, T, InOrderSearchBehaviour>.only: Builder<E, T, InOrderOnlySearchBehaviour>
Defines that the constraint "only the specified entries exist in the Iterable" shall be applied to this
sophisticated contains in order Iterable assertion.
|
|
value
|
fun <E, T : Iterable<E>> Builder<E, T, InAnyOrderOnlySearchBehaviour>.value(expected: E): AssertionPlant<T>
fun <E, T : Iterable<E>> Builder<E, T, InOrderOnlySearchBehaviour>.value(expected: E): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the Iterable needs to contain only the
expected value.
|
|
values
|
fun <E, T : Iterable<E>> Builder<E, T, InAnyOrderOnlySearchBehaviour>.values(expected: E, vararg otherExpected: E): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the expected
value as well as the otherExpected values (if given) need to be
contained in Iterable where it does not matter in which order but only as
many entries should be returned by the Iterable as values defined.
fun <E, T : Iterable<E>> Builder<E, T, InOrderOnlySearchBehaviour>.values(expected: E, vararg otherExpected: E): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the Iterable needs to contain only the
expected value as well as the otherExpected values
(if given) in the specified order.
|
|
within
|
val <E, T : Iterable<E>> Builder<E, T, InOrderOnlyGroupedSearchBehaviour>.within: Builder<E, T, InOrderOnlyGroupedWithinSearchBehaviour>
A filler word to emphasis that the next step defines the order within expected groups of values.
|