|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.assertions.api.AbstractAssert<MapAssert,Map<?,?>>
org.fest.assertions.api.MapAssert
public class MapAssert
Assertions for
s.
Map
To create a new instance of this class, invoke
.
Assertions.assertThat(Map)
Field Summary |
---|
Fields inherited from class org.fest.assertions.api.AbstractAssert |
---|
actual, myself |
Constructor Summary | |
---|---|
protected |
MapAssert(Map<?,?> actual)
|
Method Summary | |
---|---|
MapAssert |
contains(MapEntry... entries)
Verifies that the actual map contains the given entries, in any order. |
MapAssert |
doesNotContain(MapEntry... entries)
Verifies that the actual map does not contain the given entries. |
MapAssert |
hasSize(int expected)
Verifies that the number of values in the actual group is equal to the given one. |
void |
isEmpty()
Verifies that the actual group of values is empty. |
MapAssert |
isNotEmpty()
Verifies that the actual group of values is not empty. |
void |
isNullOrEmpty()
Verifies that the actual group of values is null or empty. |
Methods inherited from class org.fest.assertions.api.AbstractAssert |
---|
as, as, describedAs, describedAs, descriptionText, doesNotHave, equals, has, hashCode, is, isEqualTo, isIn, isIn, isNot, isNotEqualTo, isNotIn, isNotIn, isNotNull, isNotSameAs, isNull, isSameAs, usingComparator, usingDefaultComparator |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MapAssert(Map<?,?> actual)
Method Detail |
---|
public void isNullOrEmpty()
null
or empty.
isNullOrEmpty
in interface EnumerableAssert<MapAssert>
public void isEmpty()
isEmpty
in interface EnumerableAssert<MapAssert>
public MapAssert isNotEmpty()
isNotEmpty
in interface EnumerableAssert<MapAssert>
this
assertion object.public MapAssert hasSize(int expected)
hasSize
in interface EnumerableAssert<MapAssert>
expected
- the expected number of values in the actual group.
this
assertion object.public MapAssert contains(MapEntry... entries)
entries
- the given entries.
this
assertion object.
NullPointerException
- if the given argument is null
.
IllegalArgumentException
- if the given argument is an empty array.
NullPointerException
- if any of the entries in the given array is null
.
AssertionError
- if the actual map is null
.
AssertionError
- if the actual map does not contain the given entries.public MapAssert doesNotContain(MapEntry... entries)
entries
- the given entries.
this
assertion object.
NullPointerException
- if the given argument is null
.
IllegalArgumentException
- if the given argument is an empty array.
AssertionError
- if the actual map is null
.
AssertionError
- if the actual map contains any of the given entries.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |