Package | Description |
---|---|
org.fest.assertions.api |
Modifier and Type | Method and Description |
---|---|
static <K,V> MapAssert<K,V> |
Assertions.assertThat(Map<K,V> actual)
Creates a new instance of
. |
MapAssert<K,V> |
MapAssert.contains(MapEntry... entries)
Verifies that the actual map contains the given entries, in any order.
|
MapAssert<K,V> |
MapAssert.containsKey(K key)
Verifies that the actual map contains the given key.
|
MapAssert<K,V> |
MapAssert.containsValue(V value)
Verifies that the actual map contains the given value.
|
MapAssert<K,V> |
MapAssert.doesNotContain(MapEntry... entries)
Verifies that the actual map does not contain the given entries.
|
MapAssert<K,V> |
MapAssert.doesNotContainKey(K key)
Verifies that the actual map does not contain the given key.
|
MapAssert<K,V> |
MapAssert.doesNotContainValue(V value)
Verifies that the actual map does not contain the given value.
|
MapAssert<K,V> |
MapAssert.hasSameSizeAs(Iterable<?> other)
Verifies that the actual group has the same size as given
Iterable . |
MapAssert<K,V> |
MapAssert.hasSameSizeAs(Object[] other)
Verifies that the actual group has the same size as given array.
|
MapAssert<K,V> |
MapAssert.hasSize(int expected)
Verifies that the number of values in the actual group is equal to the given one.
|
MapAssert<K,V> |
MapAssert.isNotEmpty()
Verifies that the actual group of values is not empty.
|
MapAssert<K,V> |
MapAssert.usingDefaultElementComparator()
Revert to standard comparison for incoming assertion group element checks.
|
MapAssert<K,V> |
MapAssert.usingElementComparator(Comparator<? super MapEntry> customComparator)
Use given custom comparator instead of relying on actual type A
equals method to compare group elements for
incoming assertion checks. |
Copyright © 2007–2015. All rights reserved.