Class JsonPathMappingDataDictionary
java.lang.Object
org.citrusframework.message.AbstractMessageProcessor
org.citrusframework.variable.dictionary.AbstractDataDictionary<String>
org.citrusframework.variable.dictionary.json.AbstractJsonDataDictionary
org.citrusframework.variable.dictionary.json.JsonPathMappingDataDictionary
- All Implemented Interfaces:
InitializingPhase,MessageDirectionAware,MessageProcessor,MessageTransformer,MessageTypeSelector,Scoped,DataDictionary<String>
Json data dictionary implementation maps elements via JsonPath expressions. When element is identified by some expression
in dictionary value is overwritten accordingly.
- Since:
- 2.7
- Author:
- Christoph Deppisch
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.citrusframework.variable.dictionary.DataDictionary
DataDictionary.PathMappingStrategyNested classes/interfaces inherited from interface org.citrusframework.message.MessageProcessor
MessageProcessor.Builder<T extends MessageProcessor,B extends MessageProcessor.Builder<T, B>> -
Field Summary
Fields inherited from class org.citrusframework.variable.dictionary.AbstractDataDictionary
mappingFile, mappingsFields inherited from interface org.citrusframework.message.MessageProcessor
RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidprocessMessage(Message message, TestContext context) <T> Ttranslate(String jsonPath, T value, TestContext context) Methods inherited from class org.citrusframework.variable.dictionary.json.AbstractJsonDataDictionary
supportsMessageTypeMethods inherited from class org.citrusframework.variable.dictionary.AbstractDataDictionary
convertIfNecessary, getMappingFile, getMappings, getName, getPathMappingStrategy, isGlobalScope, setGlobalScope, setMappingFile, setMappings, setName, setPathMappingStrategyMethods inherited from class org.citrusframework.message.AbstractMessageProcessor
getDirection, process, setDirectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.message.MessageDirectionAware
getDirectionMethods inherited from interface org.citrusframework.message.MessageProcessor
process, transform
-
Constructor Details
-
JsonPathMappingDataDictionary
public JsonPathMappingDataDictionary()
-
-
Method Details
-
processMessage
- Overrides:
processMessagein classAbstractMessageProcessor
-
translate
-
initialize
public void initialize()- Specified by:
initializein interfaceInitializingPhase- Overrides:
initializein classAbstractDataDictionary<String>
-