Package | Description |
---|---|
org.assertj.core.api | |
org.assertj.core.data | |
org.assertj.core.internal | |
org.assertj.core.presentation |
Modifier and Type | Method and Description |
---|---|
static <K,V> MapEntry<K,V> |
Assertions.entry(K key,
V value)
Only delegate to
MapEntry#entry(K key, V value) so that Assertions offers a full feature entry point to
all
AssertJ features (but you can use MapEntry if you prefer). |
Modifier and Type | Method and Description |
---|---|
S |
AbstractMapAssert.contains(MapEntry<? extends K,? extends V>... entries)
Verifies that the actual map contains the given entries, in any order.
|
MapAssert<K,V> |
MapAssert.contains(MapEntry<? extends K,? extends V>... entries) |
S |
AbstractMapAssert.containsExactly(MapEntry<? extends K,? extends V>... entries)
Verifies that the actual map contains only the given entries and nothing else, in order.
This assertion should only be used with map that have a consistent iteration order (i.e. |
MapAssert<K,V> |
MapAssert.containsExactly(MapEntry<? extends K,? extends V>... entries) |
S |
AbstractMapAssert.containsOnly(MapEntry<? extends K,? extends V>... entries)
Verifies that the actual map contains only the given entries and nothing else, in any order.
|
MapAssert<K,V> |
MapAssert.containsOnly(MapEntry<? extends K,? extends V>... entries) |
S |
AbstractMapAssert.doesNotContain(MapEntry<? extends K,? extends V>... entries)
Verifies that the actual map does not contain the given entries.
|
MapAssert<K,V> |
MapAssert.doesNotContain(MapEntry<? extends K,? extends V>... entries) |
Modifier and Type | Method and Description |
---|---|
S |
AbstractMapAssert.usingElementComparator(java.util.Comparator<? super MapEntry<? extends K,? extends V>> customComparator)
Deprecated.
Custom element Comparator is not supported for MapEntry comparison.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> MapEntry<K,V> |
MapEntry.entry(K key,
V value)
Creates a new
MapEntry . |
Modifier and Type | Method and Description |
---|---|
<K,V> void |
Maps.assertContains(AssertionInfo info,
java.util.Map<K,V> actual,
MapEntry<? extends K,? extends V>[] entries)
Asserts that the given
Map contains the given entries, in any order. |
<K,V> void |
Maps.assertContainsExactly(AssertionInfo info,
java.util.Map<K,V> actual,
MapEntry<? extends K,? extends V>... entries)
Verifies that the actual map contains only the given entries and nothing else, in order.
This assertion should only be used with map that have a consistent iteration order (i.e. |
<K,V> void |
Maps.assertContainsOnly(AssertionInfo info,
java.util.Map<K,V> actual,
MapEntry<? extends K,? extends V>... entries)
Verifies that the actual map contains only the given entries and nothing else, in any order.
|
<K,V> void |
Maps.assertDoesNotContain(AssertionInfo info,
java.util.Map<K,V> actual,
MapEntry<? extends K,? extends V>[] entries)
Asserts that the given
Map does not contain the given entries. |
private <K,V> void |
Maps.compareActualMapAndExpectedEntries(java.util.Map<K,V> actual,
MapEntry<? extends K,? extends V>[] entries,
java.util.Set<MapEntry<? extends K,? extends V>> notExpected,
java.util.Set<MapEntry<? extends K,? extends V>> notFound) |
private <K,V> boolean |
Maps.containsEntry(java.util.Map<K,V> actual,
MapEntry<? extends K,? extends V> entry) |
private <K,V> void |
Maps.doCommonContainsCheck(AssertionInfo info,
java.util.Map<K,V> actual,
MapEntry<? extends K,? extends V>[] entries) |
private static <K,V> java.util.Map<K,V> |
Maps.entriesToMap(MapEntry<? extends K,? extends V>[] entries) |
private static <K,V> void |
Maps.failIfEmpty(MapEntry<? extends K,? extends V>[] entries) |
private static <K,V> void |
Maps.failIfEmptySinceActualIsNotEmpty(MapEntry<? extends K,? extends V>[] values) |
private static <K,V> void |
Maps.failIfNull(MapEntry<? extends K,? extends V>[] entries) |
private static <K,V> void |
Maps.failIfNullOrEmpty(MapEntry<? extends K,? extends V>[] entries) |
Modifier and Type | Method and Description |
---|---|
private <K,V> void |
Maps.compareActualMapAndExpectedEntries(java.util.Map<K,V> actual,
MapEntry<? extends K,? extends V>[] entries,
java.util.Set<MapEntry<? extends K,? extends V>> notExpected,
java.util.Set<MapEntry<? extends K,? extends V>> notFound) |
private <K,V> void |
Maps.compareActualMapAndExpectedEntries(java.util.Map<K,V> actual,
MapEntry<? extends K,? extends V>[] entries,
java.util.Set<MapEntry<? extends K,? extends V>> notExpected,
java.util.Set<MapEntry<? extends K,? extends V>> notFound) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
DefaultToString.toStringOf(MapEntry<?,?> mapEntry,
Representation representation) |