org.hamcrest.collection
Class IsEmptyCollection<E>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<java.util.Collection<E>>
org.hamcrest.collection.IsEmptyCollection<E>
- All Implemented Interfaces:
- Matcher<java.util.Collection<E>>, SelfDescribing
public class IsEmptyCollection<E>
- extends TypeSafeMatcher<java.util.Collection<E>>
Tests if collection is empty.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IsEmptyCollection
public IsEmptyCollection()
matchesSafely
public boolean matchesSafely(java.util.Collection<E> item)
- Specified by:
matchesSafely in class TypeSafeMatcher<java.util.Collection<E>>
describeMismatchSafely
public void describeMismatchSafely(java.util.Collection<E> item,
Description mismatchDescription)
- Overrides:
describeMismatchSafely in class TypeSafeMatcher<java.util.Collection<E>>
describeTo
public void describeTo(Description description)
empty
public static <E> Matcher<java.util.Collection<E>> empty()
- Matches an empty collection.
Copyright © 2010. All Rights Reserved.