fun <T : CharSequence> CharSequenceContainsCheckerBuilder<T, CharSequenceContainsNoOpSearchBehaviour>.werte(expected: Any, vararg otherExpected: Any): IAssertionPlant<T>
Finishes the specification of the sophisticated contains
assertion where the expected object as well as
the otherExpected objects shall be searched, using a non disjoint search.
By non disjoint is meant that 'aa'
in 'aaaa'
is found three times and not only two times.
Also notice, that it does not search for unique matches. Meaning, if the input of the search is 'a'
and expected
is defined as 'a'
and one otherExpected is defined as 'a'
as well, then both match, even though they match the
same sequence in the input of the search.
expected
- The object which is expected to be contained within the input of the search.
otherExpected
- Additional objects which are expected to be contained within the input of the search.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
The IAssertionPlant for which the assertion was built to support a fluent API.
fun <T : CharSequence> CharSequenceContainsCheckerBuilder<T, CharSequenceContainsIgnoringCaseSearchBehaviour>.werte(expected: Any, vararg otherExpected: Any): IAssertionPlant<T>
Finishes the specification of the sophisticated contains
assertion where the expected object as well as
the otherExpected objects shall be searched (ignoring case), using a non disjoint search.
By non disjoint is meant that 'aa'
in 'aaaa'
is found three times and not only two times.
Also notice, that it does not search for unique matches. Meaning, if the input of the search is 'a'
and expected
is defined as 'a'
and one otherExpected is defined as 'a'
as well, then both match, even though they match the
same sequence in the input of the search.
expected
- The object which is expected to be contained within the input of the search.
otherExpected
- Additional objects which are expected to be contained within the input of the search.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
The IAssertionPlant for which the assertion was built to support a fluent API.
fun <E, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.werte(expected: E, vararg otherExpected: E): IAssertionPlant<T>
Finishes the specification of the sophisticated contains
assertion where the expected value as well as the
otherExpected values shall be searched within the Iterable.
Delegates to objekte.
expected
- The value which is expected to be contained within the Iterable.
otherExpected
- Additional values which are expected to be contained within Iterable.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
The IAssertionPlant for which the assertion was built to support a fluent API.
fun <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInAnyOrderOnlySearchBehaviour>.werte(expected: E, vararg otherExpected: E): IAssertionPlant<T>
Finishes the specification of the sophisticated contains
assertion where the expected value as well as the
otherExpected values need to be contained in Iterable where it does not matter in which order.
Delegates to objekte.
expected
- The value which is expected to be contained within the Iterable.
otherExpected
- Additional values which are expected to be contained within Iterable.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
The IAssertionPlant for which the assertion was built to support a fluent API.
fun <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInOrderOnlySearchBehaviour>.werte(expected: E, vararg otherExpected: E): IAssertionPlant<T>
Finishes the specification of the sophisticated contains
assertion where the expected value as well as the
otherExpected values need to be contained in Iterable in the specified order.
Delegates to objekte.
expected
- The value which is expected to be contained within the Iterable.
otherExpected
- Additional values which are expected to be contained within Iterable.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
The IAssertionPlant for which the assertion was built to support a fluent API.