org.axonframework.test.matchers
Class PayloadsMatcher
java.lang.Object
org.hamcrest.BaseMatcher<List<? extends Message<?>>>
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. |
Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString |
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
matches
public boolean matches(Object item)
describeTo
public void describeTo(org.hamcrest.Description description)
Copyright © 2010-2016. All Rights Reserved.