Class PayloadMatchingMessageSelector

  • All Implemented Interfaces:
    com.consol.citrus.message.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.
    Author:
    Christoph Deppisch
    • Field Detail

      • SELECTOR_ID

        public static final String SELECTOR_ID
        Special selector identifying key for this message selector implementation
        See Also:
        Constant Field Values
    • Constructor Detail

      • PayloadMatchingMessageSelector

        public PayloadMatchingMessageSelector​(String selectKey,
                                              String matchingValue,
                                              com.consol.citrus.context.TestContext context)
        Default constructor using fields.
    • Method Detail

      • accept

        public boolean accept​(com.consol.citrus.message.Message message)