All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jspringbot.keyword.xml.CreateXMLString Maven / Gradle / Ivy

package org.jspringbot.keyword.xml;

import org.jspringbot.KeywordInfo;
import org.springframework.stereotype.Component;

@Component
@KeywordInfo(
        name = "Create XML String",
        description = "classpath:desc/CreateXMLString.txt"
)
public class CreateXMLString extends AbstractXMLKeyword {

    @Override
    public Object execute(Object[] params) {
        try {
            return builderHelper.asString();
        } catch (Exception e) {
            throw new IllegalArgumentException("Error creating xml string.");
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy