inAny
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.
Return
an Expect for the subject of this
expectation.
Since
0.14.0 -- API existed for Iterable but not for IterableLike.
Parameters
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))
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.
Return
an Expect for the subject of this
expectation.
Since
0.18.0
Parameters
A parameter object containing the different groups which have to appear in order in the IterableLike plus one lambda configuring the InOrderOnlyReportingOptions and another configuring the InAnyOrderOnlyReportingOptions -- use the function:
order(group, group, ..., report = { ... })
to create a WithInOrderOnlyReportingOptions with a wrapped WithInAnyOrderOnlyReportingOptions which specifies nothing and in turn wraps an Order.order(group, group, ..., reportInGroup = { ... })
to create a WithInOrderOnlyReportingOptions which specifies nothing but wraps a WithInOrderOnlyReportingOptions which is configured viareportInGroup
and in turn wraps an Order.order(group, group, ..., report = { ... }, reportInGroup = { ... } )
to create a WithInOrderOnlyReportingOptions (configured viareport
) with a wrapped WithInAnyOrderOnlyReportingOptions (configured viareportInGroup
) which in turn wraps an Order.
where group
above (in all examples) is either value(e)
or values(e, ...)
; so a call could look as follows: `inAny order(values(1, 2), value(2), values(3, 2), report = { showOnlyFailing() })
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.
Return
an Expect for the subject of this
expectation.
Since
0.14.0 -- API existed for Iterable but not for IterableLike.
Parameters
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:
inAny order(
entry { it toEqual 1 },
entries({ it lessThan 2 }, { it toEqual 3 })
)
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.
Return
an Expect for the subject of this
expectation.
Since
0.18.0
Parameters
A parameter object containing the different groups which have to appear in order in the IterableLike plus one lambda configuring the InOrderOnlyReportingOptions and another configuring the InAnyOrderOnlyReportingOptions -- use the function:
order(group, group, ..., report = { ... })
to create a WithInOrderOnlyReportingOptions with a wrapped WithInAnyOrderOnlyReportingOptions which specifies nothing and in turn wraps an Order.order(group, group, ..., reportInGroup = { ... })
to create a WithInOrderOnlyReportingOptions which specifies nothing but wraps a WithInOrderOnlyReportingOptions which is configured viareportInGroup
and in turn wraps an Order.order(group, group, ..., report = { ... }, reportInGroup = { ... } )
to create a WithInOrderOnlyReportingOptions (configured viareport
) with a wrapped WithInAnyOrderOnlyReportingOptions (configured viareportInGroup
) which in turn wraps an Order. plus a lambda configuring the InOrderOnlyReportingOptions -- use the functionorder(group, group, ..., report = { ... })
to create a WithInOrderOnlyReportingOptions with a wrapped Order where group is eitherentry { ... }
orentries({ ... }, ...)
; so a call could look as follows:
inAny order(
entry { it toEqual 1 },
entries({ it lessThan 2 }, { it toEqual 3 })
report = { showOnlyFailing }
reportInGroup = { showOnlyFailingIfMoreElementsThan(5) }
)
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.
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