Interface CDateVerifier
-
- All Superinterfaces:
CBaseState<java.util.Date>
,CBaseVerifier<java.util.Date>
,CBaseWaiter<java.util.Date>
,CObjectVerifier<java.util.Date,CDateState>
,java.io.Serializable
- All Known Subinterfaces:
CDateWaitVerifier
,CDynamicDateExtension
,CStaticDateExtension
- All Known Implementing Classes:
CDate
public interface CDateVerifier extends CObjectVerifier<java.util.Date,CDateState>
CDateVerifier is an interface for Date 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:
-
-
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 CDateState
_toState(java.lang.Object e)
default void
verifyEqualsByFormat(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String format)
Verify that actual and expected have the exact same string value after they converted using the provided date format.default void
verifyEqualsByFormat(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String format, java.lang.String message, java.lang.Object... params)
Verify that actual and expected have the exact same string value after they converted using the provided date format.default void
verifyEqualsDatePortion(CVerificationQueue verificationQueue, java.util.Date expected)
Verify that actual and expected have same string value after they converted using "yyyy-MM-dd" for format.default void
verifyEqualsDatePortion(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String message, java.lang.Object... params)
Verify that actual and expected have same string value after they converted using "yyyy-MM-dd" for format.default void
verifyEqualsTimePortion(CVerificationQueue verificationQueue, java.util.Date expected)
Verify that actual and expected have same string value after they converted using "HH:mm:ss" for format.default void
verifyEqualsTimePortion(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String message, java.lang.Object... params)
Verify that actual and expected have same string value after they converted using "HH:mm:ss" for format.default void
verifyNotEqualsByFormat(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String format)
Verify that actual and expected have different string value after they converted using the provided date format.default void
verifyNotEqualsByFormat(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String format, java.lang.String message, java.lang.Object... params)
Verify that actual and expected have different string value after they converted using the provided date format.default void
verifyNotEqualsDatePortion(CVerificationQueue verificationQueue, java.util.Date expected)
Verify that actual and expected have different string value after they converted using "yyyy-MM-dd" for format.default void
verifyNotEqualsDatePortion(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String message, java.lang.Object... params)
Verify that actual and expected have different string value after they converted using "yyyy-MM-dd" for format.default void
verifyNotEqualsTimePortion(CVerificationQueue verificationQueue, java.util.Date expected)
Verify that actual and expected have different string value after they converted using "HH:mm:ss" for format.default void
verifyNotEqualsTimePortion(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String message, java.lang.Object... params)
Verify that 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
getBaseValue
-
Methods inherited from interface org.catools.common.extensions.verify.interfaces.CBaseVerifier
_useWaiter, _verify, _verify, _verify, _verify, _verify, _verify, _verify, _verify, _verify, getDefaultMessage, getDefaultMessage, getVerifyMessagePrefix
-
Methods inherited from interface org.catools.common.extensions.wait.interfaces.CBaseWaiter
getDefaultWaitInSeconds, getDefaultWaitIntervalInMilliSeconds
-
Methods inherited from interface org.catools.common.extensions.verify.interfaces.CObjectVerifier
verifyEquals, verifyEquals, verifyEqualsAny, verifyEqualsAny, verifyEqualsNone, verifyEqualsNone, verifyIsNotNull, verifyIsNotNull, verifyIsNull, verifyIsNull, verifyNotEquals, verifyNotEquals
-
-
-
-
Method Detail
-
_toState
default CDateState _toState(java.lang.Object e)
- Specified by:
_toState
in interfaceCObjectVerifier<java.util.Date,CDateState>
-
verifyEqualsByFormat
default void verifyEqualsByFormat(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String format)
Verify that 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:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to compareformat
- date format to be use
-
verifyEqualsByFormat
default void verifyEqualsByFormat(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String format, java.lang.String message, java.lang.Object... params)
Verify that 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:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to compareformat
- date format to be usemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyEqualsDatePortion
default void verifyEqualsDatePortion(CVerificationQueue verificationQueue, java.util.Date expected)
Verify that 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:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to compare
-
verifyEqualsDatePortion
default void verifyEqualsDatePortion(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String message, java.lang.Object... params)
Verify that 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:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyEqualsTimePortion
default void verifyEqualsTimePortion(CVerificationQueue verificationQueue, java.util.Date expected)
Verify that 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:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to compare
-
verifyEqualsTimePortion
default void verifyEqualsTimePortion(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String message, java.lang.Object... params)
Verify that 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:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyNotEqualsByFormat
default void verifyNotEqualsByFormat(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String format)
Verify that 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:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to compareformat
- date format to be use
-
verifyNotEqualsByFormat
default void verifyNotEqualsByFormat(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String format, java.lang.String message, java.lang.Object... params)
Verify that 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:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to compareformat
- date format to be usemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyNotEqualsDatePortion
default void verifyNotEqualsDatePortion(CVerificationQueue verificationQueue, java.util.Date expected)
Verify that 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:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to compare
-
verifyNotEqualsDatePortion
default void verifyNotEqualsDatePortion(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String message, java.lang.Object... params)
Verify that 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:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyNotEqualsTimePortion
default void verifyNotEqualsTimePortion(CVerificationQueue verificationQueue, java.util.Date expected)
Verify that 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:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to compare
-
verifyNotEqualsTimePortion
default void verifyNotEqualsTimePortion(CVerificationQueue verificationQueue, java.util.Date expected, java.lang.String message, java.lang.Object... params)
Verify that 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:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpected
- value to comparemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
-