Class IsEmptyCollection<E>
java.lang.Object
org.hamcrest.BaseMatcher<Collection<E>>
com.jayway.jsonassert.impl.matcher.CollectionMatcher<Collection<E>>
com.jayway.jsonassert.impl.matcher.IsEmptyCollection<E>
- All Implemented Interfaces:
org.hamcrest.Matcher<Collection<E>>
,org.hamcrest.SelfDescribing
Tests if collection is empty.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
describeTo
(org.hamcrest.Description description) static <E> org.hamcrest.Matcher
<Collection<E>> empty()
Matches an empty collection.boolean
matchesSafely
(Collection<E> item) Methods inherited from class com.jayway.jsonassert.impl.matcher.CollectionMatcher
matches
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, isNotNull, toString
-
Constructor Details
-
IsEmptyCollection
public IsEmptyCollection()
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafely
in classCollectionMatcher<Collection<E>>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
empty
Matches an empty collection.
-