Class IsEmptyCollection<E>
- java.lang.Object
-
- org.hamcrest.BaseMatcher<C>
-
- dev.aherscu.qa.testing.utils.assertions.impl.matcher.CollectionMatcher<Collection<E>>
-
- dev.aherscu.qa.testing.utils.assertions.impl.matcher.IsEmptyCollection<E>
-
- All Implemented Interfaces:
org.hamcrest.Matcher<Collection<E>>
,org.hamcrest.SelfDescribing
public class IsEmptyCollection<E> extends CollectionMatcher<Collection<E>>
Tests if collection is empty.
-
-
Constructor Summary
Constructors Constructor Description IsEmptyCollection()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 dev.aherscu.qa.testing.utils.assertions.impl.matcher.CollectionMatcher
matches
-
-
-
-
Method Detail
-
matchesSafely
public boolean matchesSafely(Collection<E> item)
- Specified by:
matchesSafely
in classCollectionMatcher<Collection<E>>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-
empty
public static <E> org.hamcrest.Matcher<Collection<E>> empty()
Matches an empty collection.
-
-