Class EmptyCollectionMatcher<T>

java.lang.Object
org.hamcrest.BaseMatcher<List<T>>
org.axonframework.test.matchers.EmptyCollectionMatcher<T>
All Implemented Interfaces:
org.hamcrest.Matcher<List<T>>, org.hamcrest.SelfDescribing

public class EmptyCollectionMatcher<T> extends org.hamcrest.BaseMatcher<List<T>>
Matches any empty collection.
Since:
1.1
Author:
Allard Buijze
  • Constructor Summary

    Constructors
    Constructor
    Description
    EmptyCollectionMatcher(String contentDescription)
    Creates a matcher of a list of empty items.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    describeTo(org.hamcrest.Description description)
     
    boolean
     

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, isNotNull, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • EmptyCollectionMatcher

      public EmptyCollectionMatcher(String contentDescription)
      Creates a matcher of a list of empty items. The name of the item type (in plural) is passed in the given contentDescription and will be part of the description of this matcher.
      Parameters:
      contentDescription - The description of the content type of the collection
  • Method Details

    • matches

      public boolean matches(Object item)
    • describeTo

      public void describeTo(org.hamcrest.Description description)