Interface DataDictionary<T>

  • All Superinterfaces:
    InitializingPhase, MessageDirectionAware, MessageProcessor, MessageTransformer, Scoped

    public interface DataDictionary<T>
    extends MessageProcessor, MessageDirectionAware, Scoped, InitializingPhase
    Data dictionary interface describes a mechanism to modify message content (payload) with global dictionary elements. Dictionary translates element values to those defined in dictionary. Message construction process is aware of dictionaries in Spring application context so user just has to add dictionary implementation to application context. Dictionary takes part in message construction for inbound and outbound messages in Citrus.
    Since:
    1.4
    Author:
    Christoph Deppisch
    • Method Detail

      • translate

        <R> R translate​(T key,
                        R value,
                        TestContext context)
        Translate value with given path in message content.
        Parameters:
        value - current value
        key - the key element in message content
        context - the current test context
        Returns:
      • getName

        String getName()
        Gets the data dictionary name.
        Returns: