infix fun <E : Any, T : Iterable<E>> Assert<T>.containsStrictly(expected: E): AssertionPlant<T>
(source)
Makes the assertion that AssertionPlant.subject contains only the expected value.
It is a shortcut for to contain inGiven order and only value expected
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.
infix fun <E, T : Iterable<E>> Assert<T>.containsStrictly(expected: NullableValue<E>): AssertionPlant<T>
(source)
Makes the assertion that AssertionPlant.subject (which has a nullable entry type) contains only the expected nullable value.
It is a shortcut for to contain inGiven order and only nullableValue expected
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.
infix fun <E : Any, T : Iterable<E>> Assert<T>.containsStrictly(values: Values<E>): AssertionPlant<T>
(source)
Makes the assertion that AssertionPlant.subject contains only the expected values in the defined order.
It is a shortcut for to contain inGiven order and only the Values(...)
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.
infix fun <E, T : Iterable<E>> Assert<T>.containsStrictly(nullableValues: NullableValues<E>): AssertionPlant<T>
(source)
Makes the assertion that AssertionPlant.subject (which has a nullable entry type) contains only the expected nullableValues in the defined order.
It is a shortcut for to contain inGiven order and only the NullableValues(...)
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.
infix fun <E : Any, T : Iterable<E>> Assert<T>.containsStrictly(assertionCreator: Assert<E>.() -> Unit): AssertionPlant<T>
(source)
Makes the assertion that AssertionPlant.subject contains only one entry which is holding the assertions created by the assertionCreator.
It is a shortcut for to contain inGiven order and only the entry { ... }
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.
infix fun <E : Any, T : Iterable<E?>> Assert<T>.containsStrictly(nullableEntry: NullableEntry<E>): AssertionPlant<T>
(source)
Makes the assertion that AssertionPlant.subject (which has a nullable entry type) contains only one entry
which is holding the assertions created by nullableEntry.assertionCreator or
only one entry which is null
in case nullableEntry is defined as null
.
It is a shortcut for to contain inGiven order and only nullableEntry { ... }
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.
infix fun <E : Any, T : Iterable<E>> Assert<T>.containsStrictly(entries: Entries<E>): AssertionPlant<T>
(source)
Makes the assertion that AssertionPlant.subject contains only an entry holding the assertions created by the entries.assertionCreator and an additional entry for each entries.otherAssertionCreators (if given) in the defined order holding the assertions created by them.
It is a shortcut for to contain inGiven order and only the Entries(...)
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.
infix fun <E : Any, T : Iterable<E?>> Assert<T>.containsStrictly(nullableEntries: NullableEntries<E>): AssertionPlant<T>
(source)
Makes the assertion that AssertionPlant.subject (which has a nullable entry type) contains only an entry holding
the assertions created by nullableEntries.assertionCreator or
null
in case nullableEntries.assertionCreator is defined as null
and likewise an additional entry for each
nullableEntries.otherAssertionCreators (if given)
whereas the entries have to appear in the defined order.
It is a shortcut for to contain inGiven order and only the NullableEntries(...)
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.