| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | describeMismatchSafely(Collection<? extends E> item, Description mismatchDescription)
Overrides org. |
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| public static <E> Matcher | empty()
Creates a matcher for |
| public static <E> Matcher | emptyCollectionOf(Class<E>
the type of the collection's content unusedToForceReturnType)Creates a matcher for |
| public boolean | matchesSafely(Collection<? extends E> item)
Implements abstract org. |
| IsEmptyCollection | back to summary |
|---|---|
| public IsEmptyCollection() | |
| describeMismatchSafely | back to summary |
|---|---|
| public void describeMismatchSafely(Collection<? extends E> item, Description mismatchDescription) Overrides org. Doc from org. Subclasses should override this. The item will already have been checked for the specific type and will never be null.
| |
| describeTo | back to summary |
|---|---|
| public void describeTo(Description description) Implements org. Doc from org. Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.
| |
| empty | back to summary |
|---|---|
| public static <E> Matcher Creates a matcher for assertThat(new ArrayList<String>(), is(empty())) | |
| emptyCollectionOf | back to summary |
|---|---|
| public static <E> Matcher Creates a matcher for assertThat(new ArrayList<String>(), is(emptyCollectionOf(String.class)))
| |
| matchesSafely | back to summary |
|---|---|
| public boolean matchesSafely(Collection<? extends E> item) Implements abstract org. Doc from org. Subclasses should implement this. The item will already have been checked for the specific type and will never be null.
| |