public class IsEmptyCollection<E> extends TypeSafeMatcher<java.util.Collection<E>>
Constructor and Description |
---|
IsEmptyCollection() |
Modifier and Type | Method and Description |
---|---|
void |
describeMismatchSafely(java.util.Collection<E> item,
Description mismatchDescription)
Subclasses should override this.
|
void |
describeTo(Description description)
Generates a description of the object.
|
static <E> Matcher<java.util.Collection<E>> |
empty()
Matches an empty collection.
|
boolean |
matchesSafely(java.util.Collection<E> item)
Subclasses should implement this.
|
describeMismatch, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
public boolean matchesSafely(java.util.Collection<E> item)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<java.util.Collection<E>>
public void describeMismatchSafely(java.util.Collection<E> item, Description mismatchDescription)
TypeSafeMatcher
describeMismatchSafely
in class TypeSafeMatcher<java.util.Collection<E>>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.public static <E> Matcher<java.util.Collection<E>> empty()