Class CreateCDataSectionFunction

  • All Implemented Interfaces:
    com.consol.citrus.functions.Function

    public class CreateCDataSectionFunction
    extends Object
    implements com.consol.citrus.functions.Function
    Adds XML CDATA section tags to parameter value. This is extremely useful when having CDATA sections in message payload. Citrus test case itself also uses CDATA sections and nested CDATA sections are not allowed. This function adds the CDATA section tags at runtime.
    Author:
    Christoph Deppisch
    • Constructor Detail

      • CreateCDataSectionFunction

        public CreateCDataSectionFunction()
    • Method Detail

      • execute

        public String execute​(List<String> parameterList,
                              com.consol.citrus.context.TestContext context)
        Specified by:
        execute in interface com.consol.citrus.functions.Function