Interface GenericMapAssert<T,U,V extends java.util.Map<T,U>,W extends GenericMapAssert<T,U,V,W>>
-
- Type Parameters:
T
- the key typeU
- the value typeV
- the map typeW
- 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description W
contains(java.util.Map.Entry<? extends T,? extends U>... entries)
Verifies that the map contains the given entries, in any order.W
containsAllEntriesOf(java.util.Map<? extends T,? extends U> map)
Verifies that the map contains all the elements of the given map.W
containsAnyOf(java.util.Map.Entry<? extends T,? extends U>... entries)
Verifies that the map contains any of the given entries.W
containsEntry(T key, U value)
Verifies that the map contains the given key and value.W
containsExactly(java.util.Map.Entry<? extends T,? extends U>... entries)
Verifies that the map contains exactly the given entries.W
containsKey(T key)
Verifies that the map contains the given key.W
containsKeys(T... keys)
Verifies that the map contains the given keys.W
containsOnly(java.util.Map.Entry<? extends T,? extends U>... entries)
Verifies that the map only contains the given entries.W
containsOnlyKeys(T... keys)
Verifies that the map only contains the given keys.W
containsValue(U value)
Verifies that the map contains the given value.W
containsValues(U... values)
Verifies that the map contains the given values.W
doesNotContain(java.util.Map.Entry<? extends T,? extends U>... entries)
Verifies that the map does not contain the given entries.W
doesNotContainEntry(T key, U value)
Verifies that the map does not contain the given key and value.W
doesNotContainKey(T key)
Verifies that the map contains the given key.W
doesNotContainKeys(T... keys)
Verifies that the map contains the given keys.W
doesNotContainValue(U value)
Verifies that the map contains the given value.W
hasSameSizeAs(java.util.Map<?,?> map)
Verifies that the map has the same size as the given map.-
Methods inherited from interface io.github.henryssondaniel.teacup.core.assertion.EnumerableAssert
hasSameSizeAs, hasSameSizeAs, hasSize, isEmpty, isNotEmpty, isNullOrEmpty
-
Methods inherited from interface io.github.henryssondaniel.teacup.core.assertion.GenericObjectAssert
doesNotHaveSameClassAs, hasSameClassAs, isEqualTo, isNotEqualTo, isNotSameAs, isSameAs, verify
-
-
-
-
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 keyvalue
- 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 keyvalue
- 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
-
-