|
atLeast
|
fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.atLeast(times: Int): AtLeastCheckerOption<T, S>
Restricts a contains assertion by specifying that the number of occurrences of the value which we are looking
for occurs at least number of times within the search input.
|
|
atMost
|
fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.atMost(times: Int): AtMostCheckerOption<T, S>
Restricts a contains assertion by specifying that the number of occurrences of the value which we
are looking for occurs at least once but at most number of times within the search input.
|
|
exactly
|
fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.exactly(times: Int): ExactlyCheckerOption<T, S>
Restricts a contains assertion by specifying that the number of occurrences of the value which we
are looking for occurs exactly number of times within the search input.
|
|
ignoringCase
|
val <T : CharSequence> Builder<T, NoOpSearchBehaviour>.ignoringCase: Builder<T, IgnoringCaseSearchBehaviour>
Defines that the v behaviour ignore case shall be applied to this sophisticated contains assertion.
|
|
notOrAtMost
|
fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.notOrAtMost(times: Int): NotOrAtMostCheckerOption<T, S>
Restricts a contains assertion by specifying that the number of occurrences of the value which we
are looking for occurs not at all or at most number of times within the search input.
|
|
regex
|
fun <T : CharSequence> Builder<T, IgnoringCaseSearchBehaviour>.regex(pattern: String, vararg otherPatterns: String): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the given regular expression pattern
as well as the otherPatterns are expected to to have at least one match (ignoring case),
using a non disjoint search.
|
|
value
|
fun <T : CharSequence> Builder<T, IgnoringCaseSearchBehaviour>.value(expected: Any): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the expected value shall be searched
(ignoring case), using a non disjoint search where it needs to be contained at least once.
|
|
values
|
fun <T : CharSequence> Builder<T, IgnoringCaseSearchBehaviour>.values(expected: Any, vararg otherExpected: Any): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the expected value as well as
the otherExpected values shall be searched (ignoring case), using a non disjoint search
where each need to be contained at least once.
|