Package com.eviware.soapui.support.types

Examples of com.eviware.soapui.support.types.StringList


public class SettingUtils {
    public static Collection<? extends QName> string2QNames(String string) {
        List<QName> result = new ArrayList<QName>();
        if (string != null && string.trim().length() > 0) {
            try {
                StringList names = StringList.fromXml(string);
                for (String name : names) {
                    QName qname = string2qname(name);
                    result.add(qname);
                }
            } catch (Exception e) {
View Full Code Here


        return result;
    }

    public static String qnames2String(Collection<? extends QName> qnames) {
        StringList names = new StringList();
        for (QName qname : qnames) {
            String string = qname2string(qname);
            names.add(string);
        }
        return names.toXml();
    }
View Full Code Here

    public static Map<QName, String[]> string2QNameValues(String string) {
        LinkedHashMap<QName, String[]> result = new LinkedHashMap<QName, String[]>();
        if (string != null && string.trim().length() > 0) {
            try {
                StringList list = StringList.fromXml(string);
                for (String s : list) {
                    String[] words = s.split("=");
                    if (words.length == 2) {
                        String name = words[0];
                        String[] values = words[1].split(",");
View Full Code Here

    public List<String> get() {
        return this.bq.getByAlphabeticalOrder();
    }

    private void save() {
        StringList list = new StringList();
        list.addAll(this.bq.getByInsertionOrder());
        SoapUI.getSettings().setString(RecentAssertionSettings.RECENT_ASSERTIONS, list.toXml());
    }
View Full Code Here

        list.addAll(this.bq.getByInsertionOrder());
        SoapUI.getSettings().setString(RecentAssertionSettings.RECENT_ASSERTIONS, list.toXml());
    }

    private StringList load() {
        StringList list = new StringList();
        String temp = SoapUI.getSettings().getString(RecentAssertionSettings.RECENT_ASSERTIONS, null);
        if (temp != null && temp.trim().length() > 0) {
            try {
                StringList assertions = StringList.fromXml(temp);
                for (String assertion : assertions) {
                    list.add(assertion);
                }
            } catch (Exception e) {
                SoapUI.logError(e);
View Full Code Here

            putValue(SHORT_DESCRIPTION, "Adds a new Response Representation to this Method");
        }

        public void actionPerformed(ActionEvent e) {
            String type = types.size() == 1 ? types.get(0).toString() : UISupport.prompt(
                    "Specify type of Representation to add", "Add Representation", new StringList(types).toStringArray());

            if (type != null) {
                restMethod.addNewRepresentation(RestRepresentation.Type.valueOf(type));
            }
        }
View Full Code Here

    private WsdlTestCase findTargetTestCase() {
        return ModelSupport.findModelItemById(getTestCaseId(), getTestCase().getTestSuite().getProject());
    }

    public StringList getReturnProperties() {
        return new StringList(stepConfig.getReturnProperties().getEntryList());
    }
View Full Code Here

                synchronized (runningTestCase) {
                    for (TestRunListener listener : testRunListeners) {
                        runningTestCase.addTestRunListener(listener);
                    }

                    StringList returnProperties = getReturnProperties();
                    Map<String, TestProperty> props = getProperties();
                    for (Map.Entry<String, TestProperty> entry : props.entrySet()) {
                        if (runningTestCase.hasProperty(entry.getKey()) && !returnProperties.contains(entry.getKey())) {
                            String value = PropertyExpander.expandProperties(testRunContext, entry.getValue().getValue());
                            if (StringUtils.hasContent(value) || !isIgnoreEmptyProperties()) {
                                runningTestCase.setPropertyValue(entry.getKey(), value);
                            }
                        }
View Full Code Here

        testPropertyListener = new InternalTestPropertyListener();
        holder.addTestPropertyListener(testPropertyListener);
    }

    protected void buildParamNameIndex() {
        paramNameIndex = new StringList(getPropertyNames());
    }
View Full Code Here

    public WsdlTestSuite generateTestSuite(RestService service, boolean atCreation) {
        XFormDialog dialog = ADialogBuilder.buildDialog(GenerateForm.class);
        dialog.setValue(GenerateForm.STYLE, "One TestCase for each Resource");

        StringList paths = new StringList();
        for (RestResource resource : service.getAllResources()) {
            paths.add(resource.getName() + ": " + resource.getFullPath(false));
        }

        dialog.setOptions(GenerateForm.RESOURCES, paths.toStringArray());
        XFormOptionsField operationsFormField = (XFormOptionsField) dialog.getFormField(GenerateForm.RESOURCES);
        operationsFormField.setSelectedOptions(paths.toStringArray());

        WsdlProject project = service.getProject();
        String[] testSuites = ModelSupport.getNames(new String[]{"<create>"}, project.getTestSuiteList());
        dialog.setOptions(GenerateForm.TESTSUITE, testSuites);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.types.StringList

Copyright © 2018 www.massapicom. 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.