fun <T : CharSequence> CharSequenceContainsCheckerBuilder<T, CharSequenceContainsNoOpSearchBehaviour>.value(expected: Any): IAssertionPlant<T>
Finishes the specification of the sophisticated contains
assertion where the expected object shall be searched,
using a non disjoint search.
Delegates to values.
By non disjoint is meant that 'aa' in 'aaaa' is found three times and not only two times.
expected
- The object which is 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>.value(expected: Any): IAssertionPlant<T>
Finishes the specification of the sophisticated contains
assertion where the expected object shall be searched
(ignoring case), using a non disjoint search.
Delegates to values.
By non disjoint is meant that 'aa' in 'aaaa' is found three times and not only two times.
expected
- The object which is 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>.value(expected: E): IAssertionPlant<T>
Finishes the specification of the sophisticated contains
assertion where the expected value shall be searched
within the Iterable.
Delegates to objects.
expected
- The value which is expected to be contained within the 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.