Class XpathPayloadMessageSelector
java.lang.Object
org.citrusframework.message.selector.AbstractMessageSelector
org.citrusframework.message.selector.XpathPayloadMessageSelector
- All Implemented Interfaces:
MessageSelector
Message selector accepts XML messages in case XPath expression evaluation result matches
the expected value. With this selector someone can select messages according to a message payload XML
element value for instance.
Syntax is xpath://root/element
- Since:
- 3.0
- Author:
- Christoph Deppisch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMessage selector factory for this implementation.Nested classes/interfaces inherited from interface org.citrusframework.message.MessageSelector
MessageSelector.AllAcceptingMessageSelector, MessageSelector.MessageSelectorFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSpecial selector element name identifying this message selector implementationFields inherited from class org.citrusframework.message.selector.AbstractMessageSelector
context, matchingValue, selectKeyFields inherited from interface org.citrusframework.message.MessageSelector
factories, RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
ConstructorsConstructorDescriptionXpathPayloadMessageSelector(String selectKey, String matchingValue, TestContext context) Default constructor using fields. -
Method Summary
Methods inherited from class org.citrusframework.message.selector.AbstractMessageSelector
evaluate
-
Field Details
-
SELECTOR_PREFIX
Special selector element name identifying this message selector implementation- See Also:
-
-
Constructor Details
-
XpathPayloadMessageSelector
Default constructor using fields.
-
-
Method Details
-
accept
-