Interface CIterableWaitVerifier<E>
-
- All Superinterfaces:
CBaseState<java.lang.Iterable<E>>
,CBaseVerifier<java.lang.Iterable<E>>
,CBaseWaiter<java.lang.Iterable<E>>
,CIterableVerifier<E>
,CObjectVerifier<java.lang.Iterable<E>,CIterableState<E>>
,CObjectWaitVerifier<java.lang.Iterable<E>,CIterableState<E>>
,java.io.Serializable
- All Known Subinterfaces:
CCollectionExtension<E>
,CCollectionWaitVerifier<E>
,CIterableExtension<E>
public interface CIterableWaitVerifier<E> extends CIterableVerifier<E>, CObjectWaitVerifier<java.lang.Iterable<E>,CIterableState<E>>
CIterableVerifier is an interface for Iterable verification related methods.
We need this interface to have possibility of adding verification to any exists objects with the minimum change in the code. In the meantime adding verification method in one place can be extend cross all other objects:
Please Note that we should extend manually
CIterableVerification
for each new added verification here- See Also:
Map
,CIterable
,CHashMap
,CLinkedMap
,CSet
,CList
-
-
Field Summary
-
Fields inherited from interface org.catools.common.extensions.states.interfaces.CBaseState
serialVersionUID
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default CIterableState<E>
_toState(java.lang.Object e)
default void
verifyContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds)
Verify that actual collection contains the expected element.default void
verifyContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection contains the expected element.default void
verifyContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains the expected element.default void
verifyContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains the expected element.default void
verifyContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds)
Verify that actual collection contains all elements from the expected collection.default void
verifyContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection contains all elements from the expected collection.default void
verifyContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains all elements from the expected collection.default void
verifyContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains all elements from the expected collection.default void
verifyContainsNone(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds)
Verify that actual collection contains none of elements from the expected collection.default void
verifyContainsNone(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection contains none of elements from the expected collection.default void
verifyContainsNone(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains none of elements from the expected collection.default void
verifyContainsNone(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains none of elements from the expected collection.default void
verifyEmptyOrContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds)
Verify that actual collection either is empty or contains the expected element.default void
verifyEmptyOrContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection either is empty or contains the expected element.default void
verifyEmptyOrContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection either is empty or contains the expected element.default void
verifyEmptyOrContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection either is empty or contains the expected element.default void
verifyEmptyOrNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds)
Verify that actual collection either is empty or does not contain the expected element.default void
verifyEmptyOrNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection either is empty or does not contain the expected element.default void
verifyEmptyOrNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection either is empty or does not contain the expected element.default void
verifyEmptyOrNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection either is empty or does not contain the expected element.default void
verifyEquals(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds)
Verify that actual and expected collections have the exact same elements.default void
verifyEquals(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual and expected collections have the exact same elements.default void
verifyEquals(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual and expected collections have the exact same elements.default void
verifyEquals(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual and expected collections have the exact same elements.default void
verifyHas(CVerificationQueue verificationQueue, java.util.function.Predicate<E> expected)
Verify that actual collection contains the expected element.default void
verifyHas(CVerificationQueue verificationQueue, java.util.function.Predicate<E> expected, int waitInSeconds)
Verify that actual collection contains the element which returns true from expected predicate.default void
verifyHas(CVerificationQueue verificationQueue, java.util.function.Predicate<E> expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection contains the element which returns true from expected predicate.default void
verifyHas(CVerificationQueue verificationQueue, java.util.function.Predicate<E> expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains the element which returns true from expected predicate.default void
verifyHas(CVerificationQueue verificationQueue, java.util.function.Predicate<E> expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains the element which returns true from expected predicate.default void
verifyHas(CVerificationQueue verificationQueue, java.util.function.Predicate<E> expected, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains the expected element.default void
verifyIsEmpty(CVerificationQueue verificationQueue, int waitInSeconds)
Verify that actual collection is empty.default void
verifyIsEmpty(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection is empty.default void
verifyIsEmpty(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection is empty.default void
verifyIsEmpty(CVerificationQueue verificationQueue, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection is empty.default void
verifyIsNotEmpty(CVerificationQueue verificationQueue, int waitInSeconds)
Verify that actual collection is not empty.default void
verifyIsNotEmpty(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection is not empty.default void
verifyIsNotEmpty(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection is not empty.default void
verifyIsNotEmpty(CVerificationQueue verificationQueue, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection is not empty.default void
verifyNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds)
Verify that actual collection does not contain the expected element.default void
verifyNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection does not contain the expected element.default void
verifyNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection does not contain the expected element.default void
verifyNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection does not contain the expected element.default void
verifyNotContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds)
Verify that actual collection contains some but not all elements from the expected collection.default void
verifyNotContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection contains some but not all elements from the expected collection.default void
verifyNotContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains some but not all elements from the expected collection.default void
verifyNotContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains some but not all elements from the expected collection.-
Methods inherited from interface org.catools.common.extensions.states.interfaces.CBaseState
getBaseValue
-
Methods inherited from interface org.catools.common.extensions.verify.interfaces.CBaseVerifier
_useWaiter, _verify, _verify, _verify, _verify, _verify, _verify, _verifyWithDefaultMessage, _verifyWithDefaultMessage, getDefaultMessage, getEntityDescription
-
Methods inherited from interface org.catools.common.extensions.wait.interfaces.CBaseWaiter
getDefaultWaitInSeconds, getDefaultWaitIntervalInMilliSeconds
-
Methods inherited from interface org.catools.common.extensions.verify.interfaces.CIterableVerifier
verifyContains, verifyContains, verifyContainsAll, verifyContainsAll, verifyContainsNone, verifyContainsNone, verifyEmptyOrContains, verifyEmptyOrContains, verifyEmptyOrNotContains, verifyEmptyOrNotContains, verifyEquals, verifyEquals, verifyIsEmpty, verifyIsEmpty, verifyIsNotEmpty, verifyIsNotEmpty, verifyNotContains, verifyNotContains, verifyNotContainsAll, verifyNotContainsAll
-
Methods inherited from interface org.catools.common.extensions.verify.interfaces.CObjectVerifier
verifyEqualsAny, verifyEqualsAny, verifyEqualsNone, verifyEqualsNone, verifyIsNotNull, verifyIsNotNull, verifyIsNull, verifyIsNull, verifyNotEquals, verifyNotEquals
-
Methods inherited from interface org.catools.common.extensions.waitVerify.interfaces.CObjectWaitVerifier
verifyEqualsAny, verifyEqualsAny, verifyEqualsAny, verifyEqualsAny, verifyEqualsNone, verifyEqualsNone, verifyEqualsNone, verifyEqualsNone, verifyIsNotNull, verifyIsNotNull, verifyIsNotNull, verifyIsNotNull, verifyIsNull, verifyIsNull, verifyIsNull, verifyIsNull, verifyNotEquals, verifyNotEquals, verifyNotEquals, verifyNotEquals
-
-
-
-
Method Detail
-
_toState
default CIterableState<E> _toState(java.lang.Object e)
- Specified by:
_toState
in interfaceCIterableVerifier<E>
- Specified by:
_toState
in interfaceCObjectVerifier<java.lang.Iterable<E>,CIterableState<E>>
- Specified by:
_toState
in interfaceCObjectWaitVerifier<java.lang.Iterable<E>,CIterableState<E>>
-
verifyContains
default void verifyContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds)
Verify that actual collection contains the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait time
-
verifyContains
default void verifyContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyContains
default void verifyContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection contains the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyContains
default void verifyContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyContainsAll
default void verifyContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds)
Verify that actual collection contains all elements from the expected collection. Please note that actual collection might have more elements.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait time
-
verifyContainsAll
default void verifyContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains all elements from the expected collection. Please note that actual collection might have more elements.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyContainsAll
default void verifyContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection contains all elements from the expected collection. Please note that actual collection might have more elements.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyContainsAll
default void verifyContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains all elements from the expected collection. Please note that actual collection might have more elements.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyContainsNone
default void verifyContainsNone(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds)
Verify that actual collection contains none of elements from the expected collection.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait time
-
verifyContainsNone
default void verifyContainsNone(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains none of elements from the expected collection.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyContainsNone
default void verifyContainsNone(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection contains none of elements from the expected collection.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyContainsNone
default void verifyContainsNone(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains none of elements from the expected collection.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyEmptyOrContains
default void verifyEmptyOrContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds)
Verify that actual collection either is empty or contains the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait time
-
verifyEmptyOrContains
default void verifyEmptyOrContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection either is empty or contains the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyEmptyOrContains
default void verifyEmptyOrContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection either is empty or contains the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyEmptyOrContains
default void verifyEmptyOrContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection either is empty or contains the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyEmptyOrNotContains
default void verifyEmptyOrNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds)
Verify that actual collection either is empty or does not contain the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait time
-
verifyEmptyOrNotContains
default void verifyEmptyOrNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection either is empty or does not contain the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyEmptyOrNotContains
default void verifyEmptyOrNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection either is empty or does not contain the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyEmptyOrNotContains
default void verifyEmptyOrNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection either is empty or does not contain the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyEquals
default void verifyEquals(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds)
Verify that actual and expected collections have the exact same elements. (Ignore element order) First we compare that actual collection contains all expected collection elements and then we verify that expected has all elements from actual.- Specified by:
verifyEquals
in interfaceCObjectWaitVerifier<java.lang.Iterable<E>,CIterableState<E>>
- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait time
-
verifyEquals
default void verifyEquals(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual and expected collections have the exact same elements. (Ignore element order) First we compare that actual collection contains all expected collection elements and then we verify that expected has all elements from actual.- Specified by:
verifyEquals
in interfaceCObjectWaitVerifier<java.lang.Iterable<E>,CIterableState<E>>
- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyEquals
default void verifyEquals(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual and expected collections have the exact same elements. (Ignore element order) First we compare that actual collection contains all expected collection elements and then we verify that expected has all elements from actual.- Specified by:
verifyEquals
in interfaceCObjectWaitVerifier<java.lang.Iterable<E>,CIterableState<E>>
- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyEquals
default void verifyEquals(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual and expected collections have the exact same elements. (Ignore element order) First we compare that actual collection contains all expected collection elements and then we verify that expected has all elements from actual.- Specified by:
verifyEquals
in interfaceCObjectWaitVerifier<java.lang.Iterable<E>,CIterableState<E>>
- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyHas
default void verifyHas(CVerificationQueue verificationQueue, java.util.function.Predicate<E> expected)
Verify that actual collection contains the expected element.- Specified by:
verifyHas
in interfaceCIterableVerifier<E>
- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- predicate
-
verifyHas
default void verifyHas(CVerificationQueue verificationQueue, java.util.function.Predicate<E> expected, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains the expected element.- Specified by:
verifyHas
in interfaceCIterableVerifier<E>
- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- predicatemessage
- information about the propose of verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyHas
default void verifyHas(CVerificationQueue verificationQueue, java.util.function.Predicate<E> expected, int waitInSeconds)
Verify that actual collection contains the element which returns true from expected predicate.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- predicatewaitInSeconds
- maximum wait time
-
verifyHas
default void verifyHas(CVerificationQueue verificationQueue, java.util.function.Predicate<E> expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains the element which returns true from expected predicate.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- predicatewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyHas
default void verifyHas(CVerificationQueue verificationQueue, java.util.function.Predicate<E> expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection contains the element which returns true from expected predicate.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- predicatewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyHas
default void verifyHas(CVerificationQueue verificationQueue, java.util.function.Predicate<E> expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains the element which returns true from expected predicate.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- predicatewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyIsEmpty
default void verifyIsEmpty(CVerificationQueue verificationQueue, int waitInSeconds)
Verify that actual collection is empty.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait time
-
verifyIsEmpty
default void verifyIsEmpty(CVerificationQueue verificationQueue, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection is empty.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyIsEmpty
default void verifyIsEmpty(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection is empty.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyIsEmpty
default void verifyIsEmpty(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection is empty.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyIsNotEmpty
default void verifyIsNotEmpty(CVerificationQueue verificationQueue, int waitInSeconds)
Verify that actual collection is not empty. (might contains null values)- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait time
-
verifyIsNotEmpty
default void verifyIsNotEmpty(CVerificationQueue verificationQueue, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection is not empty. (might contains null values)- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyIsNotEmpty
default void verifyIsNotEmpty(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection is not empty. (might contains null values)- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyIsNotEmpty
default void verifyIsNotEmpty(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection is not empty. (might contains null values)- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyNotContains
default void verifyNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds)
Verify that actual collection does not contain the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait time
-
verifyNotContains
default void verifyNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection does not contain the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyNotContains
default void verifyNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection does not contain the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyNotContains
default void verifyNotContains(CVerificationQueue verificationQueue, E expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection does not contain the expected element.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyNotContainsAll
default void verifyNotContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds)
Verify that actual collection contains some but not all elements from the expected collection. Please note that actual collection might have some of elements but the point is to ensure that not all expected elements are exist in it.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait time
-
verifyNotContainsAll
default void verifyNotContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains some but not all elements from the expected collection. Please note that actual collection might have some of elements but the point is to ensure that not all expected elements are exist in it.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyNotContainsAll
default void verifyNotContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual collection contains some but not all elements from the expected collection. Please note that actual collection might have some of elements but the point is to ensure that not all expected elements are exist in it.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyNotContainsAll
default void verifyNotContainsAll(CVerificationQueue verificationQueue, java.lang.Iterable<E> expected, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual collection contains some but not all elements from the expected collection. Please note that actual collection might have some of elements but the point is to ensure that not all expected elements are exist in it.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
-