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_, toString
public boolean matchesSafely(Collection<E> item)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<Collection<E>>
public void describeMismatchSafely(Collection<E> item, Description mismatchDescription)
TypeSafeMatcher
describeMismatchSafely
in class TypeSafeMatcher<Collection<E>>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.public static <E> Matcher<Collection<E>> empty()
Copyright © 2016. All rights reserved.