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

    • Constructor Detail

      • AbstractMapAssert

        public AbstractMapAssert()
    • Method Detail

      • contains

        public W contains​(java.util.Map.Entry<? extends T,​? extends U>... entries)
        Description copied from interface: GenericMapAssert
        Verifies that the map contains the given entries, in any order.
        Specified by:
        contains in interface GenericMapAssert<T,​U,​V extends java.util.Map<T,​U>,​W extends GenericMapAssert<T,​U,​V,​W>>
        Parameters:
        entries - the entries
        Returns:
        the map assert
      • containsAllEntriesOf

        public W containsAllEntriesOf​(java.util.Map<? extends T,​? extends U> map)
        Description copied from interface: GenericMapAssert
        Verifies that the map contains all the elements of the given map.
        Specified by:
        containsAllEntriesOf in interface GenericMapAssert<T,​U,​V extends java.util.Map<T,​U>,​W extends GenericMapAssert<T,​U,​V,​W>>
        Parameters:
        map - the map
        Returns:
        the map assert
      • containsAnyOf

        public W containsAnyOf​(java.util.Map.Entry<? extends T,​? extends U>... entries)
        Description copied from interface: GenericMapAssert
        Verifies that the map contains any of the given entries.
        Specified by:
        containsAnyOf in interface GenericMapAssert<T,​U,​V extends java.util.Map<T,​U>,​W extends GenericMapAssert<T,​U,​V,​W>>
        Parameters:
        entries - the entries
        Returns:
        the map assert
      • containsEntry

        public W containsEntry​(T key,
                               U value)
        Description copied from interface: GenericMapAssert
        Verifies that the map contains the given key and value.
        Specified by:
        containsEntry in interface GenericMapAssert<T,​U,​V extends java.util.Map<T,​U>,​W extends GenericMapAssert<T,​U,​V,​W>>
        Parameters:
        key - the key
        value - the value
        Returns:
        the map assert
      • containsExactly

        public W containsExactly​(java.util.Map.Entry<? extends T,​? extends U>... entries)
        Description copied from interface: GenericMapAssert
        Verifies that the map contains exactly the given entries.
        Specified by:
        containsExactly in interface GenericMapAssert<T,​U,​V extends java.util.Map<T,​U>,​W extends GenericMapAssert<T,​U,​V,​W>>
        Parameters:
        entries - the entries
        Returns:
        the map assert
      • containsOnly

        public W containsOnly​(java.util.Map.Entry<? extends T,​? extends U>... entries)
        Description copied from interface: GenericMapAssert
        Verifies that the map only contains the given entries.
        Specified by:
        containsOnly in interface GenericMapAssert<T,​U,​V extends java.util.Map<T,​U>,​W extends GenericMapAssert<T,​U,​V,​W>>
        Parameters:
        entries - the entries
        Returns:
        the map assert
      • doesNotContain

        public W doesNotContain​(java.util.Map.Entry<? extends T,​? extends U>... entries)
        Description copied from interface: GenericMapAssert
        Verifies that the map does not contain the given entries.
        Specified by:
        doesNotContain in interface GenericMapAssert<T,​U,​V extends java.util.Map<T,​U>,​W extends GenericMapAssert<T,​U,​V,​W>>
        Parameters:
        entries - the entries
        Returns:
        the map assert
      • doesNotContainEntry

        public W doesNotContainEntry​(T key,
                                     U value)
        Description copied from interface: GenericMapAssert
        Verifies that the map does not contain the given key and value.
        Specified by:
        doesNotContainEntry in interface GenericMapAssert<T,​U,​V extends java.util.Map<T,​U>,​W extends GenericMapAssert<T,​U,​V,​W>>
        Parameters:
        key - the key
        value - the value
        Returns:
        the map assert
      • hasSameSizeAs

        public W hasSameSizeAs​(java.util.Map<?,​?> map)
        Description copied from interface: GenericMapAssert
        Verifies that the map has the same size as the given map.
        Specified by:
        hasSameSizeAs in interface GenericMapAssert<T,​U,​V extends java.util.Map<T,​U>,​W extends GenericMapAssert<T,​U,​V,​W>>
        Parameters:
        map - the map
        Returns:
        the map assert
      • hasSameSizeAs

        public U hasSameSizeAs​(java.lang.Iterable<?> other)
        Description copied from interface: EnumerableAssert
        Verifies that the enumerable has the same size as the other.
        Specified by:
        hasSameSizeAs in interface EnumerableAssert<T,​U extends EnumerableAssert<T,​U>>
        Parameters:
        other - the other
        Returns:
        the enumerable assert
      • hasSameSizeAs

        public U hasSameSizeAs​(java.lang.Object array)
        Description copied from interface: EnumerableAssert
        Verifies that the enumerable has the same size as the array.
        Specified by:
        hasSameSizeAs in interface EnumerableAssert<T,​U extends EnumerableAssert<T,​U>>
        Parameters:
        array - the other
        Returns:
        the enumerable assert
      • hasSize

        public U hasSize​(int expected)
        Description copied from interface: EnumerableAssert
        Verifies that the enumerable has the expected size.
        Specified by:
        hasSize in interface EnumerableAssert<T,​U extends EnumerableAssert<T,​U>>
        Parameters:
        expected - the array
        Returns:
        the enumerable assert