Class IsEmptyCollection<E>

java.lang.Object
org.hamcrest.BaseMatcher<Collection<E>>
com.jayway.jsonassert.impl.matcher.CollectionMatcher<Collection<E>>
com.jayway.jsonassert.impl.matcher.IsEmptyCollection<E>
All Implemented Interfaces:
org.hamcrest.Matcher<Collection<E>>, org.hamcrest.SelfDescribing

public class IsEmptyCollection<E> extends CollectionMatcher<Collection<E>>
Tests if collection is empty.
  • Constructor Details

    • IsEmptyCollection

      public IsEmptyCollection()
  • Method Details

    • matchesSafely

      public boolean matchesSafely(Collection<E> item)
      Specified by:
      matchesSafely in class CollectionMatcher<Collection<E>>
    • describeTo

      public void describeTo(org.hamcrest.Description description)
    • empty

      public static <E> org.hamcrest.Matcher<Collection<E>> empty()
      Matches an empty collection.