Package com.eviware.soapui.support.types

Examples of com.eviware.soapui.support.types.StringToStringMap.keySet()


    public String createScriptAssertionForExists(XPathData xpathData) {
        String script = "var holder = new com.eviware.soapui.support.XmlHolder( messageExchange.responseContentAsXml );\n";

        StringToStringMap nsMap = xpathData.getNamespaceMap();
        for (String ns : nsMap.keySet()) {
            script += "holder.namespaces.put(\"" + nsMap.get(ns) + "\", \"" + ns + "\" );\n";
        }

        script += "var node = holder.getDomNode( \"" + xpathData.getPath() + "\" );\n";
        script += "if( node == null )\n   throw new java.lang.Exception( \"Missing node\" );\n";
View Full Code Here


                if (values == null || values.isEmpty()) {
                    UISupport.showInfoMessage("No values were returned");
                } else {
                    String msg = "<html><body>Returned values:<br>";

                    for (String name : values.keySet()) {
                        msg += XmlUtils.entitize(name) + " : " + XmlUtils.entitize(values.get(name)) + "<br>";
                    }

                    msg += "</body></html>";
View Full Code Here

    public String createScriptAssertionForExists(XPathData xpathData) {
        String script = "import com.eviware.soapui.support.XmlHolder\n\n"
                + "def holder = new XmlHolder( messageExchange.responseContentAsXml )\n";

        StringToStringMap nsMap = xpathData.getNamespaceMap();
        for (String ns : nsMap.keySet()) {
            script += "holder.namespaces[\"" + nsMap.get(ns) + "\"] = \"" + ns + "\"\n";
        }

        script += "def node = holder.getDomNode( \"" + xpathData.getPath() + "\" )\n";
        script += "\nassert node != null\n";
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.