org.axonframework.test.matchers
Class EmptyCollectionMatcher

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

public class EmptyCollectionMatcher
extends org.hamcrest.BaseMatcher<List<?>>

Matches any empty collection.

Since:
1.1
Author:
Allard Buijze

Constructor Summary
EmptyCollectionMatcher(String contentDescription)
          Creates a matcher of a list of empty items.
 
Method Summary
 void describeTo(org.hamcrest.Description description)
           
 boolean matches(Object item)
           
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

matches

public boolean matches(Object item)

describeTo

public void describeTo(org.hamcrest.Description description)


Copyright © 2010-2016. All Rights Reserved.