Class AbstractMessageSelector

java.lang.Object
org.citrusframework.message.selector.AbstractMessageSelector
All Implemented Interfaces:
org.citrusframework.message.MessageSelector
Direct Known Subclasses:
HeaderMatchingMessageSelector, PayloadMatchingMessageSelector

public abstract class AbstractMessageSelector extends Object implements org.citrusframework.message.MessageSelector
Since:
3.0
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.citrusframework.message.MessageSelector

    org.citrusframework.message.MessageSelector.AllAcceptingMessageSelector, org.citrusframework.message.MessageSelector.MessageSelectorFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.citrusframework.context.TestContext
    Test context
    protected final String
     
    protected final String
    Key and value to evaluate selection with

    Fields inherited from interface org.citrusframework.message.MessageSelector

    factories, logger, RESOURCE_PATH, TYPE_RESOLVER
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractMessageSelector(String selectKey, String matchingValue, org.citrusframework.context.TestContext context)
    Default constructor using fields.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    Evaluates given value to match this selectors matching condition.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.citrusframework.message.MessageSelector

    accept
  • Field Details

    • selectKey

      protected final String selectKey
      Key and value to evaluate selection with
    • matchingValue

      protected final String matchingValue
    • context

      protected final org.citrusframework.context.TestContext context
      Test context
  • Constructor Details

    • AbstractMessageSelector

      public AbstractMessageSelector(String selectKey, String matchingValue, org.citrusframework.context.TestContext context)
      Default constructor using fields.
      Parameters:
      selectKey -
      matchingValue -
      context -
  • Method Details

    • evaluate

      protected boolean evaluate(String value)
      Evaluates given value to match this selectors matching condition. Automatically supports validation matcher expressions.
      Parameters:
      value -
      Returns: