public class IsEmptyCollection<E> extends TypeSafeMatcher<Collection<E>>
| Constructor and Description |
|---|
IsEmptyCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatchSafely(Collection<E> item,
Description mismatchDescription)
Subclasses should override this.
|
void |
describeTo(Description description)
Generates a description of the object.
|
static <E> Matcher<Collection<E>> |
empty()
Matches an empty collection.
|
boolean |
matchesSafely(Collection<E> item)
Subclasses should implement this.
|
describeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic boolean matchesSafely(Collection<E> item)
TypeSafeMatchermatchesSafely in class TypeSafeMatcher<Collection<E>>public void describeMismatchSafely(Collection<E> item, Description mismatchDescription)
TypeSafeMatcherdescribeMismatchSafely in class TypeSafeMatcher<Collection<E>>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.public static <E> Matcher<Collection<E>> empty()
Copyright © 2016. All rights reserved.