Class JsonPathPayloadMessageSelector
java.lang.Object
org.citrusframework.message.selector.AbstractMessageSelector
org.citrusframework.message.selector.JsonPathPayloadMessageSelector
- All Implemented Interfaces:
MessageSelector
Message selector accepts JSON messages in case JsonPath expression evaluation result matches
the expected value. With this selector someone can select messages according to a message payload JSON
element value for instance.
Syntax is jsonPath:$.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 key prefix identifying this message selector implementationFields inherited from class org.citrusframework.message.selector.AbstractMessageSelector
context, matchingValue, selectKeyFields inherited from interface org.citrusframework.message.MessageSelector
factories, logger, RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
ConstructorsConstructorDescriptionJsonPathPayloadMessageSelector(String expression, String control, TestContext context) Default constructor using fields. -
Method Summary
Methods inherited from class org.citrusframework.message.selector.AbstractMessageSelector
evaluate
-
Field Details
-
SELECTOR_PREFIX
Special selector key prefix identifying this message selector implementation- See Also:
-
-
Constructor Details
-
JsonPathPayloadMessageSelector
Default constructor using fields.
-
-
Method Details
-
accept
-