org.axonframework.test.matchers
Class PayloadsMatcher

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

public class PayloadsMatcher
extends org.hamcrest.BaseMatcher<List<? extends Message<?>>>

Matches a list of Messages if the list of their payloads matches the given matcher..

Since:
2.0
Author:
Allard Buijze

Constructor Summary
PayloadsMatcher(org.hamcrest.Matcher<? extends Iterable<?>> matcher)
          Constructs an instance that uses the given matcher to match the payloads.
 
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

PayloadsMatcher

public PayloadsMatcher(org.hamcrest.Matcher<? extends Iterable<?>> matcher)
Constructs an instance that uses the given matcher to match the payloads.

Parameters:
matcher - The matcher to match the payloads with
Method Detail

matches

public boolean matches(Object item)

describeTo

public void describeTo(org.hamcrest.Description description)


Copyright © 2010-2016. All Rights Reserved.