Interface CDateWaiter

    • 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 for CConfigs.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 for CConfigs.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 for CConfigs.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 for CConfigs.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 for CConfigs.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 for CConfigs.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
    • Method Detail

      • waitEqualsByFormat

        default boolean waitEqualsByFormat​(java.util.Date expected,
                                           java.lang.String format)
        Wait for CConfigs.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 compare
        format - 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 compare
        format - date format to be use
        waitInSeconds - 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 compare
        format - date format to be use
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitEqualsDatePortion

        default boolean waitEqualsDatePortion​(java.util.Date expected)
        Wait for CConfigs.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" passes

        Please 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" passes

        Please note that verification consider as passe if both value is null

        Parameters:
        expected - value to compare
        waitInSeconds - 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" passes

        Please note that verification consider as passe if both value is null

        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitEqualsTimePortion

        default boolean waitEqualsTimePortion​(java.util.Date expected)
        Wait for CConfigs.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" passes

        Please 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" passes

        Please note that verification consider as passe if both value is null

        Parameters:
        expected - value to compare
        waitInSeconds - 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" passes

        Please note that verification consider as passe if both value is null

        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - 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 for CConfigs.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 compare
        format - 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 compare
        format - date format to be use
        waitInSeconds - 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 compare
        format - date format to be use
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitNotEqualsDatePortion

        default boolean waitNotEqualsDatePortion​(java.util.Date expected)
        Wait for CConfigs.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 compare
        waitInSeconds - 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 compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitNotEqualsTimePortion

        default boolean waitNotEqualsTimePortion​(java.util.Date expected)
        Wait for CConfigs.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 compare
        waitInSeconds - 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 compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false