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);
}
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);
}
Aggregations