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

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

    • 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 Details

    • matches

      public boolean matches(Object item)
    • describeTo

      public void describeTo(org.hamcrest.Description description)