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(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,
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,
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,
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,
Map<K,V> actual,
MapEntry<? extends K,? extends V>[] entries)
Asserts that the given
Map does not contain the given entries. |
Modifier and Type | Method and Description |
---|---|
static String |
DefaultToString.toStringOf(MapEntry<?,?> mapEntry,
Representation representation) |
Copyright © 2013-2015 AssertJ. All Rights Reserved.