Class PayloadMatchingMessageSelector

java.lang.Object
org.citrusframework.message.selector.AbstractMessageSelector
org.citrusframework.message.selector.PayloadMatchingMessageSelector
All Implemented Interfaces:
MessageSelector

public class PayloadMatchingMessageSelector extends AbstractMessageSelector
Message selector matches one or more header elements with the message header. Only in case all matching header elements are present in message header and its value matches the expected value the message is accepted.
  • Field Details

    • SELECTOR_ID

      public static final String SELECTOR_ID
      Special selector identifying key for this message selector implementation
      See Also:
  • Constructor Details

    • PayloadMatchingMessageSelector

      public PayloadMatchingMessageSelector(String selectKey, String matchingValue, TestContext context)
      Default constructor using fields.
  • Method Details

    • accept

      public boolean accept(Message message)