Package com.eviware.soapui.support.types

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


        StringToStringMap history = recent == null ? new StringToStringMap() : StringToStringMap.fromXml(recent);

        recentWorkspacesMenu.removeAll();

        if (history.size() > 0) {
            for (Map.Entry<String, String> entry : history.entrySet()) {
                String filePath = entry.getKey();
                DefaultActionMapping<WorkspaceImpl> mapping = new DefaultActionMapping<WorkspaceImpl>(
                        SwitchWorkspaceAction.SOAPUI_ACTION_ID, null, null, false, filePath);
                String wsName = entry.getValue();
View Full Code Here


        String recent = SoapUI.getSettings().getString(RECENT_PROJECTS_SETTING, null);
        StringToStringMap history = recent == null ? new StringToStringMap() : StringToStringMap.fromXml(recent);

        if (history.size() > 0) {
            for (Map.Entry<String, String> entry : history.entrySet()) {
                String filePath = entry.getKey();
                DefaultActionMapping<WorkspaceImpl> mapping = new DefaultActionMapping<WorkspaceImpl>(
                        ImportWsdlProjectAction.SOAPUI_ACTION_ID, null, null, false, filePath);
                String wsName = entry.getValue();
                mapping.setName(wsName);
View Full Code Here

        List<SettingConfig> settingList = config.getSettingList();
        for (SettingConfig setting : settingList) {
            values.put(setting.getId(), setting);
        }

        for (Map.Entry<String, String> entry : changed.entrySet()) {
            notifySettingChanged(entry.getKey(), getString(entry.getKey(), null), entry.getValue());
        }
        notifySettingsReloaded();
    }
View Full Code Here

                WsdlDefinitionExporter exporter = new WsdlDefinitionExporter((WsdlInterface) iface);

                String wsdlPrefix = trimLastSlash(getInterfacePrefix(iface));
                StringToStringMap parts = exporter.createFilesForExport(wsdlPrefix + "&part=");

                for (Map.Entry<String, String> partEntry : parts.entrySet()) {
                    if (partEntry.getKey().toLowerCase().endsWith(".wsdl")) {
                        InputSource inputSource = new InputSource(new StringReader(partEntry.getValue()));
                        String content = WsdlUtils.replacePortEndpoint((WsdlInterface) iface, inputSource,
                                mockService.getLocalMockServiceEndpoint());
View Full Code Here

        builder.addString(USERNAME, "-U");
        builder.addString(PASSWORD, "-P");

        try {
            StringToStringMap nsMappings = StringToStringMap.fromXml(values.get(NAMESPACE_MAPPING));
            for (Map.Entry<String, String> entry : nsMappings.entrySet()) {
                builder.addArgs("-N" + entry.getKey() + "=" + entry.getValue());
            }
        } catch (Exception e) {
            SoapUI.logError(e);
        }
View Full Code Here

        }

        try {
            StringBuilder nsMapArg = new StringBuilder();
            StringToStringMap nsMappings = StringToStringMap.fromXml(values.get(NAMESPACE_MAPPING));
            for (Map.Entry<String, String> entry : nsMappings.entrySet()) {
                if (nsMapArg.length() > 0) {
                    nsMapArg.append(',');
                }

                nsMapArg.append(entry.getKey()).append('=').append(entry.getValue());
View Full Code Here

        try {
            StringToStringMap nsMappings = StringToStringMap.fromXml(values.get(NAMESPACE_MAPPING));
            if (!nsMappings.isEmpty()) {
                GlobalType global = config.addNewGlobal();

                for (Map.Entry<String, String> namespaceEntry : nsMappings.entrySet()) {
                    PkgNSType entry = global.addNewPackageNamespace();
                    entry.setNamespace(namespaceEntry.getKey());
                    entry.setPackage(namespaceEntry.getValue());
                }
            }
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.