Interface CMapWaiter<K,​V>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default boolean waitContains​(java.util.Map.Entry<K,​V> expected)
      _ Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map contains the expected key and value.
      default boolean waitContains​(java.util.Map.Entry<K,​V> expected, int waitInSeconds)
      _ Wait for defined number of seconds till the actual map contains the expected key and value.
      default boolean waitContains​(java.util.Map.Entry<K,​V> expected, int waitInSeconds, int intervalInMilliSeconds)
      _ Wait for defined number of seconds till the actual map contains the expected key and value.
      default boolean waitContains​(K expectedKey, V expectedValue)
      _ Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map contains the expected key and value.
      default boolean waitContains​(K expectedKey, V expectedValue, int waitInSeconds)
      _ Wait for defined number of seconds till the actual map contains the expected key and value.
      default boolean waitContains​(K expectedKey, V expectedValue, int waitInSeconds, int intervalInMilliSeconds)
      _ Wait for defined number of seconds till the actual map contains the expected key and value.
      default boolean waitContainsAll​(java.util.Map<K,​V> expected)
      Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map contains all entries from the expected map.
      default boolean waitContainsAll​(java.util.Map<K,​V> expected, int waitInSeconds)
      Wait for defined number of seconds till the actual map contains all entries from the expected map.
      default boolean waitContainsAll​(java.util.Map<K,​V> expected, int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the actual map contains all entries from the expected map.
      default boolean waitContainsNone​(java.util.Map<K,​V> expected)
      Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map contains none of entries from the expected map.
      default boolean waitContainsNone​(java.util.Map<K,​V> expected, int waitInSeconds)
      Wait for defined number of seconds till the actual map contains none of entries from the expected map.
      default boolean waitContainsNone​(java.util.Map<K,​V> expected, int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the actual map contains none of entries from the expected map.
      default boolean waitEmptyOrContains​(java.util.Map.Entry<K,​V> expected)
      Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map either is empty or contains the expected entry.
      default boolean waitEmptyOrContains​(java.util.Map.Entry<K,​V> expected, int waitInSeconds)
      Wait for defined number of seconds till the actual map either is empty or contains the expected entry.
      default boolean waitEmptyOrContains​(java.util.Map.Entry<K,​V> expected, int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the actual map either is empty or contains the expected entry.
      default boolean waitEmptyOrContains​(K expectedKey, V expectedValue)
      Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map either is empty or contains the expected entry.
      default boolean waitEmptyOrContains​(K expectedKey, V expectedValue, int waitInSeconds)
      Wait for defined number of seconds till the actual map either is empty or contains the expected entry.
      default boolean waitEmptyOrContains​(K expectedKey, V expectedValue, int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the actual map either is empty or contains the expected entry.
      default boolean waitEmptyOrNotContains​(java.util.Map.Entry<K,​V> expected)
      Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map either is empty or does not contains the expected entry.
      default boolean waitEmptyOrNotContains​(java.util.Map.Entry<K,​V> expected, int waitInSeconds)
      Wait for defined number of seconds till the actual map either is empty or does not contains the expected entry.
      default boolean waitEmptyOrNotContains​(java.util.Map.Entry<K,​V> expected, int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the actual map either is empty or does not contains the expected entry.
      default boolean waitEmptyOrNotContains​(K expectedKey, V expectedValue)
      Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map either is empty or does not contains the expected entry.
      default boolean waitEmptyOrNotContains​(K expectedKey, V expectedValue, int waitInSeconds)
      Wait for defined number of seconds till the actual map either is empty or does not contains the expected entry.
      default boolean waitEmptyOrNotContains​(K expectedKey, V expectedValue, int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the actual map either is empty or does not contains the expected entry.
      default boolean waitEquals​(java.util.Map<K,​V> expected)
      Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual and expected maps have the exact same entries.
      default boolean waitEquals​(java.util.Map<K,​V> expected, int waitInSeconds)
      Wait for defined number of seconds till the actual and expected maps have the exact same entries.
      default boolean waitEquals​(java.util.Map<K,​V> expected, int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the actual and expected maps have the exact same entries.
      default boolean waitIsEmpty()
      Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map is empty.
      default boolean waitIsEmpty​(int waitInSeconds)
      Wait for defined number of seconds till the actual map is empty.
      default boolean waitIsEmpty​(int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the actual map is empty.
      default boolean waitIsNotEmpty()
      Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map is not empty.
      default boolean waitIsNotEmpty​(int waitInSeconds)
      Wait for defined number of seconds till the actual map is not empty.
      default boolean waitIsNotEmpty​(int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the actual map is not empty.
      default boolean waitNotContains​(java.util.Map.Entry<K,​V> expected)
      Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map does not contain the expected entry.
      default boolean waitNotContains​(java.util.Map.Entry<K,​V> expected, int waitInSeconds)
      Wait for defined number of seconds till the actual map does not contain the expected entry.
      default boolean waitNotContains​(java.util.Map.Entry<K,​V> expected, int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the actual map does not contain the expected entry.
      default boolean waitNotContains​(K expectedKey, V expectedValue)
      Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map does not contain the expected entry.
      default boolean waitNotContains​(K expectedKey, V expectedValue, int waitInSeconds)
      Wait for defined number of seconds till the actual map does not contain the expected entry.
      default boolean waitNotContains​(K expectedKey, V expectedValue, int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the actual map does not contain the expected entry.
      default boolean waitNotContainsAll​(java.util.Map<K,​V> expected)
      Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map might contains some but not all entries from the expected map.
      default boolean waitNotContainsAll​(java.util.Map<K,​V> expected, int waitInSeconds)
      Wait for defined number of seconds till the actual map might contains some but not all entries from the expected map.
      default boolean waitNotContainsAll​(java.util.Map<K,​V> expected, int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the actual map might contains some but not all entries from the expected map.
      default boolean waitSizeEquals​(int expected)
      Wait for CConfigs.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 for CConfigs.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 for CConfigs.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
    • Method Detail

      • waitContains

        default boolean waitContains​(K expectedKey,
                                     V expectedValue)
        _ Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map contains the expected key and value.
        Parameters:
        expectedKey - key to compare
        expectedValue - value to compare
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitContains

        default boolean waitContains​(K expectedKey,
                                     V expectedValue,
                                     int waitInSeconds)
        _ Wait for defined number of seconds till the actual map contains the expected key and value.
        Parameters:
        expectedKey - key to compare
        expectedValue - value to compare
        waitInSeconds - maximum wait time
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitContains

        default boolean waitContains​(K expectedKey,
                                     V expectedValue,
                                     int waitInSeconds,
                                     int intervalInMilliSeconds)
        _ Wait for defined number of seconds till the actual map contains the expected key and value.
        Parameters:
        expectedKey - key to compare
        expectedValue - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitContains

        default boolean waitContains​(java.util.Map.Entry<K,​V> expected)
        _ Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map contains the expected key and value.
        Parameters:
        expected - value to compare
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitContains

        default boolean waitContains​(java.util.Map.Entry<K,​V> expected,
                                     int waitInSeconds)
        _ Wait for defined number of seconds till the actual map contains the expected key and value.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitContains

        default boolean waitContains​(java.util.Map.Entry<K,​V> expected,
                                     int waitInSeconds,
                                     int intervalInMilliSeconds)
        _ Wait for defined number of seconds till the actual map contains the expected key and value.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitContainsAll

        default boolean waitContainsAll​(java.util.Map<K,​V> expected)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map contains all entries from the expected map. Please note that actual map might have more entries.
        Parameters:
        expected - value to compare
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitContainsAll

        default boolean waitContainsAll​(java.util.Map<K,​V> expected,
                                        int waitInSeconds)
        Wait for defined number of seconds till the actual map contains all entries from the expected map. Please note that actual map might have more entries.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitContainsAll

        default boolean waitContainsAll​(java.util.Map<K,​V> expected,
                                        int waitInSeconds,
                                        int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual map contains all entries from the expected map. Please note that actual map might have more entries.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitContainsNone

        default boolean waitContainsNone​(java.util.Map<K,​V> expected)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map contains none of entries from the expected map.
        Parameters:
        expected - value to compare
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitContainsNone

        default boolean waitContainsNone​(java.util.Map<K,​V> expected,
                                         int waitInSeconds)
        Wait for defined number of seconds till the actual map contains none of entries from the expected map.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitContainsNone

        default boolean waitContainsNone​(java.util.Map<K,​V> expected,
                                         int waitInSeconds,
                                         int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual map contains none of entries from the expected map.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEmptyOrContains

        default boolean waitEmptyOrContains​(K expectedKey,
                                            V expectedValue)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map either is empty or contains the expected entry.
        Parameters:
        expectedKey - key to compare
        expectedValue - value to compare
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEmptyOrContains

        default boolean waitEmptyOrContains​(K expectedKey,
                                            V expectedValue,
                                            int waitInSeconds)
        Wait for defined number of seconds till the actual map either is empty or contains the expected entry.
        Parameters:
        expectedKey - key to compare
        expectedValue - value to compare
        waitInSeconds - maximum wait time
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEmptyOrContains

        default boolean waitEmptyOrContains​(K expectedKey,
                                            V expectedValue,
                                            int waitInSeconds,
                                            int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual map either is empty or contains the expected entry.
        Parameters:
        expectedKey - key to compare
        expectedValue - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEmptyOrContains

        default boolean waitEmptyOrContains​(java.util.Map.Entry<K,​V> expected)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map either is empty or contains the expected entry.
        Parameters:
        expected - value to compare
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEmptyOrContains

        default boolean waitEmptyOrContains​(java.util.Map.Entry<K,​V> expected,
                                            int waitInSeconds)
        Wait for defined number of seconds till the actual map either is empty or contains the expected entry.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEmptyOrContains

        default boolean waitEmptyOrContains​(java.util.Map.Entry<K,​V> expected,
                                            int waitInSeconds,
                                            int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual map either is empty or contains the expected entry.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEmptyOrNotContains

        default boolean waitEmptyOrNotContains​(K expectedKey,
                                               V expectedValue)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map either is empty or does not contains the expected entry.
        Parameters:
        expectedKey - key to compare
        expectedValue - value to compare
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEmptyOrNotContains

        default boolean waitEmptyOrNotContains​(K expectedKey,
                                               V expectedValue,
                                               int waitInSeconds)
        Wait for defined number of seconds till the actual map either is empty or does not contains the expected entry.
        Parameters:
        expectedKey - key to compare
        expectedValue - value to compare
        waitInSeconds - maximum wait time
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEmptyOrNotContains

        default boolean waitEmptyOrNotContains​(K expectedKey,
                                               V expectedValue,
                                               int waitInSeconds,
                                               int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual map either is empty or does not contains the expected entry.
        Parameters:
        expectedKey - key to compare
        expectedValue - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEmptyOrNotContains

        default boolean waitEmptyOrNotContains​(java.util.Map.Entry<K,​V> expected)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map either is empty or does not contains the expected entry.
        Parameters:
        expected - value to compare
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEmptyOrNotContains

        default boolean waitEmptyOrNotContains​(java.util.Map.Entry<K,​V> expected,
                                               int waitInSeconds)
        Wait for defined number of seconds till the actual map either is empty or does not contains the expected entry.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEmptyOrNotContains

        default boolean waitEmptyOrNotContains​(java.util.Map.Entry<K,​V> expected,
                                               int waitInSeconds,
                                               int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual map either is empty or does not contains the expected entry.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEquals

        default boolean waitEquals​(java.util.Map<K,​V> expected)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual and expected maps have the exact same entries. (Ignore entry order) First we compare that actual map contains all expected map entries and then we Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the expected has all entries from actual.
        Specified by:
        waitEquals in interface CObjectWaiter<K>
        Parameters:
        expected - map to compare
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEquals

        default boolean waitEquals​(java.util.Map<K,​V> expected,
                                   int waitInSeconds)
        Wait for defined number of seconds till the actual and expected maps have the exact same entries. (Ignore entry order) First we compare that actual map contains all expected map entries and then we Wait for defined number of seconds till the expected has all entries from actual.
        Specified by:
        waitEquals in interface CObjectWaiter<K>
        Parameters:
        expected - map to compare
        waitInSeconds - maximum wait time
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitEquals

        default boolean waitEquals​(java.util.Map<K,​V> expected,
                                   int waitInSeconds,
                                   int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual and expected maps have the exact same entries. (Ignore entry order) First we compare that actual map contains all expected map entries and then we Wait for defined number of seconds till the expected has all entries from actual.
        Specified by:
        waitEquals in interface CObjectWaiter<K>
        Parameters:
        expected - map to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitIsEmpty

        default boolean waitIsEmpty()
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map is empty.
        Returns:
        true if wait operation succeed otherwise return false
      • waitIsEmpty

        default boolean waitIsEmpty​(int waitInSeconds)
        Wait for defined number of seconds till the actual map is empty.
        Parameters:
        waitInSeconds - maximum wait time
        Returns:
        true if wait operation succeed otherwise return false
      • waitIsEmpty

        default boolean waitIsEmpty​(int waitInSeconds,
                                    int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual map is empty.
        Parameters:
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitIsNotEmpty

        default boolean waitIsNotEmpty()
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map is not empty. (might contains null values)
        Returns:
        true if wait operation succeed otherwise return false
      • waitIsNotEmpty

        default boolean waitIsNotEmpty​(int waitInSeconds)
        Wait for defined number of seconds till the actual map is not empty. (might contains null values)
        Parameters:
        waitInSeconds - maximum wait time
        Returns:
        true if wait operation succeed otherwise return false
      • waitIsNotEmpty

        default boolean waitIsNotEmpty​(int waitInSeconds,
                                       int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual map is not empty. (might contains null values)
        Parameters:
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitNotContains

        default boolean waitNotContains​(K expectedKey,
                                        V expectedValue)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map does not contain the expected entry.
        Parameters:
        expectedKey - key to compare
        expectedValue - value to compare
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitNotContains

        default boolean waitNotContains​(K expectedKey,
                                        V expectedValue,
                                        int waitInSeconds)
        Wait for defined number of seconds till the actual map does not contain the expected entry.
        Parameters:
        expectedKey - key to compare
        expectedValue - value to compare
        waitInSeconds - maximum wait time
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitNotContains

        default boolean waitNotContains​(K expectedKey,
                                        V expectedValue,
                                        int waitInSeconds,
                                        int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual map does not contain the expected entry.
        Parameters:
        expectedKey - key to compare
        expectedValue - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitNotContains

        default boolean waitNotContains​(java.util.Map.Entry<K,​V> expected)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map does not contain the expected entry.
        Parameters:
        expected - value to compare
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitNotContains

        default boolean waitNotContains​(java.util.Map.Entry<K,​V> expected,
                                        int waitInSeconds)
        Wait for defined number of seconds till the actual map does not contain the expected entry.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitNotContains

        default boolean waitNotContains​(java.util.Map.Entry<K,​V> expected,
                                        int waitInSeconds,
                                        int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual map does not contain the expected entry.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitNotContainsAll

        default boolean waitNotContainsAll​(java.util.Map<K,​V> expected)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual map might contains some but not all entries from the expected map. Please note that actual map might have some of entries but the point is to ensure that not all expected entries are exist in it. We do Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the both key and value match in this comparision
        Parameters:
        expected - value to compare
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitNotContainsAll

        default boolean waitNotContainsAll​(java.util.Map<K,​V> expected,
                                           int waitInSeconds)
        Wait for defined number of seconds till the actual map might contains some but not all entries from the expected map. Please note that actual map might have some of entries but the point is to ensure that not all expected entries are exist in it. We do Wait for defined number of seconds till the both key and value match in this comparision
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitNotContainsAll

        default boolean waitNotContainsAll​(java.util.Map<K,​V> expected,
                                           int waitInSeconds,
                                           int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual map might contains some but not all entries from the expected map. Please note that actual map might have some of entries but the point is to ensure that not all expected entries are exist in it. We do Wait for defined number of seconds till the both key and value match in this comparision
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        caller CMapWaiter so we can do chain calls
      • waitSizeEquals

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

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

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