Package | Description |
---|---|
org.assertj.core.api | |
org.assertj.core.data | |
org.assertj.core.internal |
Modifier and Type | Method and Description |
---|---|
static MapEntry |
Assertions.entry(Object key,
Object value)
Only delegate to
entry(Object, Object) 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... entries)
Verifies that the actual map contains the given entries, in any order.
|
S |
AbstractMapAssert.containsExactly(MapEntry... 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. |
S |
AbstractMapAssert.containsOnly(MapEntry... entries)
Verifies that the actual map contains only the given entries and nothing else, in any order.
|
S |
AbstractMapAssert.doesNotContain(MapEntry... entries)
Verifies that the actual map does not contain the given entries.
|
Modifier and Type | Method and Description |
---|---|
S |
AbstractMapAssert.usingElementComparator(Comparator<? super MapEntry> customComparator)
Deprecated.
Custom element Comparator is not supported for MapEntry comparison.
|
Modifier and Type | Method and Description |
---|---|
static MapEntry |
MapEntry.entry(Object key,
Object value)
Creates a new
MapEntry . |
Modifier and Type | Method and Description |
---|---|
void |
Maps.assertContains(AssertionInfo info,
Map<?,?> actual,
MapEntry[] 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... 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... entries)
Verifies that the actual map contains only the given entries and nothing else, in any order.
|
void |
Maps.assertDoesNotContain(AssertionInfo info,
Map<?,?> actual,
MapEntry[] entries)
Asserts that the given
Map does not contain the given entries. |
Copyright © 2013-2014 AssertJ. All Rights Reserved.