Interface CDateWaiter
-
- All Superinterfaces:
CBaseState<java.util.Date>
,CBaseWaiter<java.util.Date>
,CObjectWaiter<java.util.Date>
- All Known Subinterfaces:
CDateExtension
- All Known Implementing Classes:
CDate
public interface CDateWaiter extends CObjectWaiter<java.util.Date>
CDateWaiter is an interface for CDate waiter related methods.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
waitEqualsByFormat(java.util.Date expected, java.lang.String format)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual and expected have the exact same string value after they converted using the provided date format.default boolean
waitEqualsByFormat(java.util.Date expected, java.lang.String format, int waitInSeconds)
Wait for defined number of seconds till the actual and expected have the exact same string value after they converted using the provided date format.default boolean
waitEqualsByFormat(java.util.Date expected, java.lang.String format, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have the exact same string value after they converted using the provided date format.default boolean
waitEqualsDatePortion(java.util.Date expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual and expected have same string value after they converted using "yyyy-MM-dd" for format.default boolean
waitEqualsDatePortion(java.util.Date expected, int waitInSeconds)
Wait for defined number of seconds till the actual and expected have same string value after they converted using "yyyy-MM-dd" for format.default boolean
waitEqualsDatePortion(java.util.Date expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have same string value after they converted using "yyyy-MM-dd" for format.default boolean
waitEqualsTimePortion(java.util.Date expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual and expected have same string value after they converted using "HH:mm:ss" for format.default boolean
waitEqualsTimePortion(java.util.Date expected, int waitInSeconds)
Wait for defined number of seconds till the actual and expected have same string value after they converted using "HH:mm:ss" for format.default boolean
waitEqualsTimePortion(java.util.Date expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have same string value after they converted using "HH:mm:ss" for format.default boolean
waitNotEqualsByFormat(java.util.Date expected, java.lang.String format)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual and expected have different string value after they converted using the provided date format.default boolean
waitNotEqualsByFormat(java.util.Date expected, java.lang.String format, int waitInSeconds)
Wait for defined number of seconds till the actual and expected have different string value after they converted using the provided date format.default boolean
waitNotEqualsByFormat(java.util.Date expected, java.lang.String format, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have different string value after they converted using the provided date format.default boolean
waitNotEqualsDatePortion(java.util.Date expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual and expected have different string value after they converted using "yyyy-MM-dd" for format.default boolean
waitNotEqualsDatePortion(java.util.Date expected, int waitInSeconds)
Wait for defined number of seconds till the actual and expected have different string value after they converted using "yyyy-MM-dd" for format.default boolean
waitNotEqualsDatePortion(java.util.Date expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have different string value after they converted using "yyyy-MM-dd" for format.default boolean
waitNotEqualsTimePortion(java.util.Date expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual and expected have different string value after they converted using "HH:mm:ss" for format.default boolean
waitNotEqualsTimePortion(java.util.Date expected, int waitInSeconds)
Wait for defined number of seconds till the actual and expected have different string value after they converted using "HH:mm:ss" for format.default boolean
waitNotEqualsTimePortion(java.util.Date expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have different string value after they converted using "HH:mm:ss" for format.-
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.CObjectWaiter
_waiter, wait, wait, wait, waitEquals, waitEquals, waitEquals, waitEqualsAny, waitEqualsAny, waitEqualsAny, waitEqualsNone, waitEqualsNone, waitEqualsNone, waitIsNotNull, waitIsNotNull, waitIsNotNull, waitIsNull, waitIsNull, waitIsNull, waitNotEquals, waitNotEquals, waitNotEquals
-
-
-
-
Method Detail
-
waitEqualsByFormat
default boolean waitEqualsByFormat(java.util.Date expected, java.lang.String format)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual and expected have the exact same string value after they converted using the provided date format. Means that verification of "2019-08-09 12:20" and "2019-08-09 11:20" using "yyyy-MM-dd" passes.Please note that verification consider as passe if both value is null
- Parameters:
expected
- value to compareformat
- date format to be use- Returns:
- true if wait operation succeed otherwise return false
-
waitEqualsByFormat
default boolean waitEqualsByFormat(java.util.Date expected, java.lang.String format, int waitInSeconds)
Wait for defined number of seconds till the actual and expected have the exact same string value after they converted using the provided date format. Means that verification of "2019-08-09 12:20" and "2019-08-09 11:20" using "yyyy-MM-dd" passes.Please note that verification consider as passe if both value is null
- Parameters:
expected
- value to compareformat
- date format to be usewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitEqualsByFormat
default boolean waitEqualsByFormat(java.util.Date expected, java.lang.String format, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have the exact same string value after they converted using the provided date format. Means that verification of "2019-08-09 12:20" and "2019-08-09 11:20" using "yyyy-MM-dd" passes.Please note that verification consider as passe if both value is null
- Parameters:
expected
- value to compareformat
- date format to be usewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitEqualsDatePortion
default boolean waitEqualsDatePortion(java.util.Date expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual and expected have same string value after they converted using "yyyy-MM-dd" for format. Means that verification of "2019-08-09 12:20" and "2019-08-09 11:20" passesPlease note that verification consider as passe if both value is null
- Parameters:
expected
- value to compare- Returns:
- true if wait operation succeed otherwise return false
-
waitEqualsDatePortion
default boolean waitEqualsDatePortion(java.util.Date expected, int waitInSeconds)
Wait for defined number of seconds till the actual and expected have same string value after they converted using "yyyy-MM-dd" for format. Means that verification of "2019-08-09 12:20" and "2019-08-09 11:20" passesPlease note that verification consider as passe if both value is null
- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitEqualsDatePortion
default boolean waitEqualsDatePortion(java.util.Date expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have same string value after they converted using "yyyy-MM-dd" for format. Means that verification of "2019-08-09 12:20" and "2019-08-09 11:20" passesPlease note that verification consider as passe if both value is null
- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitEqualsTimePortion
default boolean waitEqualsTimePortion(java.util.Date expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual and expected have same string value after they converted using "HH:mm:ss" for format. Means that verification of "2019-08-09 12:20" and "2019-08-08 12:20" passesPlease note that verification consider as passe if both value is null
- Parameters:
expected
- value to compare- Returns:
- true if wait operation succeed otherwise return false
-
waitEqualsTimePortion
default boolean waitEqualsTimePortion(java.util.Date expected, int waitInSeconds)
Wait for defined number of seconds till the actual and expected have same string value after they converted using "HH:mm:ss" for format. Means that verification of "2019-08-09 12:20" and "2019-08-08 12:20" passesPlease note that verification consider as passe if both value is null
- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitEqualsTimePortion
default boolean waitEqualsTimePortion(java.util.Date expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have same string value after they converted using "HH:mm:ss" for format. Means that verification of "2019-08-09 12:20" and "2019-08-08 12:20" passesPlease note that verification consider as passe if both value is null
- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitNotEqualsByFormat
default boolean waitNotEqualsByFormat(java.util.Date expected, java.lang.String format)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual and expected have different string value after they converted using the provided date format. Means that verification of "2019-08-09 12:20" and "2019-08-09 11:20" using "yyyy-MM-dd HH" passes (means values are different)Please note that verification consider as passe if one of value is null
- Parameters:
expected
- value to compareformat
- date format to be use- Returns:
- true if wait operation succeed otherwise return false
-
waitNotEqualsByFormat
default boolean waitNotEqualsByFormat(java.util.Date expected, java.lang.String format, int waitInSeconds)
Wait for defined number of seconds till the actual and expected have different string value after they converted using the provided date format. Means that verification of "2019-08-09 12:20" and "2019-08-09 11:20" using "yyyy-MM-dd HH" passes (means values are different)Please note that verification consider as passe if one of value is null
- Parameters:
expected
- value to compareformat
- date format to be usewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitNotEqualsByFormat
default boolean waitNotEqualsByFormat(java.util.Date expected, java.lang.String format, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have different string value after they converted using the provided date format. Means that verification of "2019-08-09 12:20" and "2019-08-09 11:20" using "yyyy-MM-dd HH" passes (means values are different)Please note that verification consider as passe if one of value is null
- Parameters:
expected
- value to compareformat
- date format to be usewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitNotEqualsDatePortion
default boolean waitNotEqualsDatePortion(java.util.Date expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual and expected have different string value after they converted using "yyyy-MM-dd" for format. Means that verification of "2019-08-09 12:20" and "2019-08-08 12:20" passes (means values are different)Please note that verification consider as passe if one of value is null
- Parameters:
expected
- value to compare- Returns:
- true if wait operation succeed otherwise return false
-
waitNotEqualsDatePortion
default boolean waitNotEqualsDatePortion(java.util.Date expected, int waitInSeconds)
Wait for defined number of seconds till the actual and expected have different string value after they converted using "yyyy-MM-dd" for format. Means that verification of "2019-08-09 12:20" and "2019-08-08 12:20" passes (means values are different)Please note that verification consider as passe if one of value is null
- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitNotEqualsDatePortion
default boolean waitNotEqualsDatePortion(java.util.Date expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have different string value after they converted using "yyyy-MM-dd" for format. Means that verification of "2019-08-09 12:20" and "2019-08-08 12:20" passes (means values are different)Please note that verification consider as passe if one of value is null
- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitNotEqualsTimePortion
default boolean waitNotEqualsTimePortion(java.util.Date expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds till the actual and expected have different string value after they converted using "HH:mm:ss" for format. Means that verification of "2019-08-09 12:20:31" and "2019-08-09 12:20:30" passes (means values are different)Please note that verification consider as passe if one of value is null
- Parameters:
expected
- value to compare- Returns:
- true if wait operation succeed otherwise return false
-
waitNotEqualsTimePortion
default boolean waitNotEqualsTimePortion(java.util.Date expected, int waitInSeconds)
Wait for defined number of seconds till the actual and expected have different string value after they converted using "HH:mm:ss" for format. Means that verification of "2019-08-09 12:20:31" and "2019-08-09 12:20:30" passes (means values are different)Please note that verification consider as passe if one of value is null
- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitNotEqualsTimePortion
default boolean waitNotEqualsTimePortion(java.util.Date expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have different string value after they converted using "HH:mm:ss" for format. Means that verification of "2019-08-09 12:20:31" and "2019-08-09 12:20:30" passes (means values are different)Please note that verification consider as passe if one of value is null
- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
-