Search in sources :

Example 11 with Property

use of org.eclipse.jst.server.generic.servertype.definition.Property in project webtools.servertools by eclipse.

the class ServerRuntimeUtils method verifyNoProperty.

public static void verifyNoProperty(List property, String id) {
    boolean found = false;
    Iterator iter = property.iterator();
    while (iter.hasNext()) {
        Property prop = (Property) iter.next();
        if (prop.getId().equals(id)) {
            found = true;
            break;
        }
    }
    assertFalse("Property found when there should be none", found);
}
Also used : Iterator(java.util.Iterator) Property(org.eclipse.jst.server.generic.servertype.definition.Property)

Example 12 with Property

use of org.eclipse.jst.server.generic.servertype.definition.Property in project webtools.servertools by eclipse.

the class ServerTypeDefinitionModelTest method testProperty.

public void testProperty() {
    Property property = (Property) subject.getProperty().get(0);
    assertNotNull(property);
    assertTrue(property.getContext() != null && property.getContext().length() > 0);
    assertTrue(property.getDefault() != null && property.getDefault().length() > 0);
    assertTrue(property.getId() != null && property.getId().length() > 0);
    assertTrue(property.getLabel() != null && property.getLabel().length() > 0);
    assertTrue(property.getType() != null && property.getType().length() > 0);
}
Also used : Property(org.eclipse.jst.server.generic.servertype.definition.Property)

Aggregations

Property (org.eclipse.jst.server.generic.servertype.definition.Property)12 Iterator (java.util.Iterator)9 List (java.util.List)6 HashMap (java.util.HashMap)4 ArrayList (java.util.ArrayList)2 Map (java.util.Map)2 Button (org.eclipse.swt.widgets.Button)2 Combo (org.eclipse.swt.widgets.Combo)2 Text (org.eclipse.swt.widgets.Text)2 StringTokenizer (java.util.StringTokenizer)1 Classpath (org.eclipse.jst.server.generic.servertype.definition.Classpath)1 ServerRuntime (org.eclipse.jst.server.generic.servertype.definition.ServerRuntime)1 GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 Composite (org.eclipse.swt.widgets.Composite)1 ExpandableComposite (org.eclipse.ui.forms.widgets.ExpandableComposite)1 FormToolkit (org.eclipse.ui.forms.widgets.FormToolkit)1 Section (org.eclipse.ui.forms.widgets.Section)1 ServerEditorSection (org.eclipse.wst.server.ui.editor.ServerEditorSection)1