Interface GenericMapAssert<T,​U,​V extends java.util.Map<T,​U>,​W extends GenericMapAssert<T,​U,​V,​W>>

  • Type Parameters:
    T - the key type
    U - the value type
    V - the map type
    W - the generic map assertion type
    All Superinterfaces:
    EnumerableAssert<V,​W>, GenericObjectAssert<V,​W>
    All Known Subinterfaces:
    MapAssert<T,​U>
    All Known Implementing Classes:
    AbstractMapAssert

    public interface GenericMapAssert<T,​U,​V extends java.util.Map<T,​U>,​W extends GenericMapAssert<T,​U,​V,​W>>
    extends EnumerableAssert<V,​W>
    Generic map assertions.
    Since:
    1.0
    • Method Detail

      • contains

        W contains​(java.util.Map.Entry<? extends T,​? extends U>... entries)
        Verifies that the map contains the given entries, in any order.
        Parameters:
        entries - the entries
        Returns:
        the map assert
        Since:
        1.0
      • containsAllEntriesOf

        W containsAllEntriesOf​(java.util.Map<? extends T,​? extends U> map)
        Verifies that the map contains all the elements of the given map.
        Parameters:
        map - the map
        Returns:
        the map assert
        Since:
        1.0
      • containsAnyOf

        W containsAnyOf​(java.util.Map.Entry<? extends T,​? extends U>... entries)
        Verifies that the map contains any of the given entries.
        Parameters:
        entries - the entries
        Returns:
        the map assert
        Since:
        1.0
      • containsEntry

        W containsEntry​(T key,
                        U value)
        Verifies that the map contains the given key and value.
        Parameters:
        key - the key
        value - the value
        Returns:
        the map assert
        Since:
        1.0
      • containsExactly

        W containsExactly​(java.util.Map.Entry<? extends T,​? extends U>... entries)
        Verifies that the map contains exactly the given entries.
        Parameters:
        entries - the entries
        Returns:
        the map assert
        Since:
        1.0
      • containsKey

        W containsKey​(T key)
        Verifies that the map contains the given key.
        Parameters:
        key - the key
        Returns:
        the map assert
        Since:
        1.0
      • containsKeys

        W containsKeys​(T... keys)
        Verifies that the map contains the given keys.
        Parameters:
        keys - the keys
        Returns:
        the map assert
        Since:
        1.0
      • containsOnly

        W containsOnly​(java.util.Map.Entry<? extends T,​? extends U>... entries)
        Verifies that the map only contains the given entries.
        Parameters:
        entries - the entries
        Returns:
        the map assert
        Since:
        1.0
      • containsOnlyKeys

        W containsOnlyKeys​(T... keys)
        Verifies that the map only contains the given keys.
        Parameters:
        keys - the keys
        Returns:
        the map assert
        Since:
        1.0
      • containsValue

        W containsValue​(U value)
        Verifies that the map contains the given value.
        Parameters:
        value - the value
        Returns:
        the map assert
        Since:
        1.0
      • containsValues

        W containsValues​(U... values)
        Verifies that the map contains the given values.
        Parameters:
        values - the values
        Returns:
        the map assert
        Since:
        1.0
      • doesNotContain

        W doesNotContain​(java.util.Map.Entry<? extends T,​? extends U>... entries)
        Verifies that the map does not contain the given entries.
        Parameters:
        entries - the entries
        Returns:
        the map assert
        Since:
        1.0
      • doesNotContainEntry

        W doesNotContainEntry​(T key,
                              U value)
        Verifies that the map does not contain the given key and value.
        Parameters:
        key - the key
        value - the value
        Returns:
        the map assert
        Since:
        1.0
      • doesNotContainKey

        W doesNotContainKey​(T key)
        Verifies that the map contains the given key.
        Parameters:
        key - the key
        Returns:
        the map assert
        Since:
        1.0
      • doesNotContainKeys

        W doesNotContainKeys​(T... keys)
        Verifies that the map contains the given keys.
        Parameters:
        keys - the keys
        Returns:
        the map assert
        Since:
        1.0
      • doesNotContainValue

        W doesNotContainValue​(U value)
        Verifies that the map contains the given value.
        Parameters:
        value - the value
        Returns:
        the map assert
        Since:
        1.0
      • hasSameSizeAs

        W hasSameSizeAs​(java.util.Map<?,​?> map)
        Verifies that the map has the same size as the given map.
        Parameters:
        map - the map
        Returns:
        the map assert
        Since:
        1.0