Class JsonPathVariableExtractor
java.lang.Object
org.citrusframework.validation.json.JsonPathVariableExtractor
- All Implemented Interfaces:
MessageProcessor,MessageTransformer,VariableExtractor
Extractor implementation reads message elements via JSONPath expressions and saves the
values as new test variables. JSONObject and JSONArray items will be saved as String representation.
- Since:
- 2.3
- Author:
- Christoph Deppisch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFluent builder. -
Field Summary
Fields inherited from interface org.citrusframework.variable.VariableExtractor
RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextractVariables(Message message, TestContext context) Gets the JSONPath expressions.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.message.MessageProcessor
transformMethods inherited from interface org.citrusframework.variable.VariableExtractor
process
-
Constructor Details
-
JsonPathVariableExtractor
public JsonPathVariableExtractor()
-
-
Method Details
-
extractVariables
- Specified by:
extractVariablesin interfaceVariableExtractor
-
getJsonPathExpressions
Gets the JSONPath expressions.- Returns:
-