Package org.axonframework.test.matchers
Class PayloadsMatcher
java.lang.Object
org.hamcrest.BaseMatcher<List<org.axonframework.messaging.Message<?>>>
org.axonframework.test.matchers.PayloadsMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<List<org.axonframework.messaging.Message<?>>>,org.hamcrest.SelfDescribing
public class PayloadsMatcher
extends org.hamcrest.BaseMatcher<List<org.axonframework.messaging.Message<?>>>
Matches a list of Messages if the list of their payloads matches the given matcher..
- Since:
- 2.0
- Author:
- Allard Buijze
-
Constructor Summary
ConstructorsConstructorDescriptionPayloadsMatcher(org.hamcrest.Matcher<? extends Iterable<?>> matcher) Constructs an instance that uses the givenmatcherto match the payloads. -
Method Summary
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, isNotNull, toString
-
Constructor Details
-
PayloadsMatcher
Constructs an instance that uses the givenmatcherto match the payloads.- Parameters:
matcher- The matcher to match the payloads with
-
-
Method Details
-
matches
-
describeTo
public void describeTo(org.hamcrest.Description description)
-