Package com.eviware.soapui.model.testsuite

Examples of com.eviware.soapui.model.testsuite.TestProperty


    }

    public TestProperty addProperty(String name) {
        String oldLabel = getLabel();

        TestProperty property = propertyHolderSupport.addProperty(name);
        notifyPropertyChanged(WsdlTestStep.LABEL_PROPERTY, oldLabel, getLabel());

        return property;
    }
View Full Code Here


    }

    public TestProperty removeProperty(String propertyName) {
        String oldLabel = getLabel();

        TestProperty result = propertyHolderSupport.removeProperty(propertyName);
        notifyPropertyChanged(WsdlTestStep.LABEL_PROPERTY, oldLabel, getLabel());
        return result;
    }
View Full Code Here

        public TestStepPropertiesListener(JComboBox combo) {
            this.combo = combo;
        }

        public void propertyAdded(String name) {
            TestProperty property = combo == targetPropertyCombo ? getCurrentTransfer().getTargetStep().getProperty(name)
                    : getCurrentTransfer().getSourceStep().getProperty(name);

            combo.addItem(property);
            combo.setEnabled(true);
        }
View Full Code Here

        }

        public void propertyMoved(String name, int oldIndex, int newIndex) {
            combo.removeItemAt(oldIndex);

            TestProperty property = combo == targetPropertyCombo ? getCurrentTransfer().getTargetStep().getProperty(name)
                    : getCurrentTransfer().getSourceStep().getProperty(name);

            combo.insertItemAt(property, newIndex);
        }
View Full Code Here

                // remove read-only properties from target property
                if (propertyCombo == targetPropertyCombo) {
                    List<String> names = new ArrayList<String>();
                    for (String name : propertyNames) {
                        TestProperty property = selectedItem.getProperty(name);
                        if (property != null && !property.isReadOnly()) {
                            names.add(property.getName());
                        }
                    }

                    propertyNames = names.toArray(new String[names.size()]);
                }
View Full Code Here

        public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,
                                                      boolean cellHasFocus) {
            Component result = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);

            if (value != null) {
                TestProperty item = (TestProperty) value;
                setText(item.getName());
            }

            setToolTipText(getText());

            return result;
View Full Code Here

            listener.propertyValueChanged(name, oldValue, newValue);
        }
    }

    public TestProperty addProperty(String name) {
        TestProperty result = new InternalTestProperty(name, null);
        propertyMap.put(name.toUpperCase(), result);
        properties.add(result);
        firePropertyAdded(name);
        return result;
    }
View Full Code Here

            for (String name : propertyNames) {
                if (name.equals(WsdlTestStepWithProperties.RESPONSE_AS_XML)) {
                    continue; // skip ResponseAsXML
                }

                TestProperty propertyValue = propertyMap.get(name);
                if (parameters.containsKey(name)) {
                    addArgument(parameters.get(name));
                } else {
                    addArgument(PropertyExpander.expandProperties(context, propertyValue.getValue()));
                }
            }

            StringToObjectMap stringToObjectMap = new StringToObjectMap();
            for (String key : getAmfHeadersString().getKeys()) {
View Full Code Here

    public List<TestProperty> getPropertyList() {
        return Collections.unmodifiableList(properties);
    }

    public String getPropertyValue(String name) {
        TestProperty property = getProperty(name);
        return property == null ? null : property.getValue();
    }
View Full Code Here

        TestProperty property = getProperty(name);
        return property == null ? null : property.getValue();
    }

    public TestProperty removeProperty(String propertyName) {
        TestProperty property = getProperty(propertyName);
        if (property != null) {
            properties.remove(property);
            propertyMap.remove(propertyName.toUpperCase());
            firePropertyRemoved(propertyName);
        }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.testsuite.TestProperty

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.