Interface CCollectionWaiter<E>
-
- All Superinterfaces:
CBaseState<java.lang.Iterable<E>>
,CBaseWaiter<java.lang.Iterable<E>>
,CIterableWaiter<E>
,CObjectWaiter<java.lang.Iterable<E>>
- All Known Subinterfaces:
CCollection<E>
,CCollectionExtension<E>
- All Known Implementing Classes:
CConfigInfoCollection
,CHolidayCollection
,CList
,CSet
,CTestResults
public interface CCollectionWaiter<E> extends CIterableWaiter<E>, CObjectWaiter<java.lang.Iterable<E>>
CCollectionWaiter is an interface for Collection waiter related methods.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
waitSizeEquals(int expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the map size is equal to expected value.default boolean
waitSizeEquals(int expected, int waitInSeconds)
Wait for defined number of seconds till the map size is equal to expected value.default boolean
waitSizeEquals(int expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the map size is equal to expected value.default boolean
waitSizeIsGreaterThan(int expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual has value greater than expected.default boolean
waitSizeIsGreaterThan(int expected, int waitInSeconds)
Wait for defined number of seconds till the actual has value greater than expected.default boolean
waitSizeIsGreaterThan(int expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual has value greater than expected.default boolean
waitSizeIsLessThan(int expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual has value less than expected.default boolean
waitSizeIsLessThan(int expected, int waitInSeconds)
Wait for defined number of seconds till the actual has value less than expected.default boolean
waitSizeIsLessThan(int expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual has value less than expected.-
Methods inherited from interface org.catools.common.extensions.states.interfaces.CBaseState
getValue
-
Methods inherited from interface org.catools.common.extensions.wait.interfaces.CBaseWaiter
getDefaultWaitInSeconds, getDefaultWaitIntervalInMilliSeconds
-
Methods inherited from interface org.catools.common.extensions.wait.interfaces.CIterableWaiter
waitContains, waitContains, waitContains, waitContainsAll, waitContainsAll, waitContainsAll, waitContainsNone, waitContainsNone, waitContainsNone, waitEmptyOrContains, waitEmptyOrContains, waitEmptyOrContains, waitEmptyOrNotContains, waitEmptyOrNotContains, waitEmptyOrNotContains, waitEquals, waitEquals, waitEquals, waitHas, waitHas, waitHas, waitIsEmpty, waitIsEmpty, waitIsEmpty, waitIsNotEmpty, waitIsNotEmpty, waitIsNotEmpty, waitNotContains, waitNotContains, waitNotContains, waitNotContainsAll, waitNotContainsAll, waitNotContainsAll
-
Methods inherited from interface org.catools.common.extensions.wait.interfaces.CObjectWaiter
_waiter, wait, wait, wait, waitEqualsAny, waitEqualsAny, waitEqualsAny, waitEqualsNone, waitEqualsNone, waitEqualsNone, waitIsNotNull, waitIsNotNull, waitIsNotNull, waitIsNull, waitIsNull, waitIsNull, waitNotEquals, waitNotEquals, waitNotEquals
-
-
-
-
Method Detail
-
waitSizeEquals
default boolean waitSizeEquals(int expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the map size is equal to expected value.- Parameters:
expected
- value to compare- Returns:
- true if wait operation succeed otherwise return false
-
waitSizeEquals
default boolean waitSizeEquals(int expected, int waitInSeconds)
Wait for defined number of seconds till the map size is equal to expected value.- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitSizeEquals
default boolean waitSizeEquals(int expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the map size is equal to expected value.- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitSizeIsGreaterThan
default boolean waitSizeIsGreaterThan(int expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual has value greater than expected.- Parameters:
expected
- value to compare- Returns:
- true if wait operation succeed otherwise return false
-
waitSizeIsGreaterThan
default boolean waitSizeIsGreaterThan(int expected, int waitInSeconds)
Wait for defined number of seconds till the actual has value greater than expected.- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitSizeIsGreaterThan
default boolean waitSizeIsGreaterThan(int expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual has value greater than expected.- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitSizeIsLessThan
default boolean waitSizeIsLessThan(int expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual has value less than expected.- Parameters:
expected
- value to compare- Returns:
- true if wait operation succeed otherwise return false
-
waitSizeIsLessThan
default boolean waitSizeIsLessThan(int expected, int waitInSeconds)
Wait for defined number of seconds till the actual has value less than expected.- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitSizeIsLessThan
default boolean waitSizeIsLessThan(int expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual has value less than expected.- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
-