use of org.csstudio.display.builder.model.widgets.VisibleWidget in project org.csstudio.display.builder by kasemir.
the class WidgetPropertyUnitTest method testCommonWidgetProperty.
/**
* Check common widget properties
*/
@Test
public void testCommonWidgetProperty() {
final Widget widget = new VisibleWidget("generic");
System.out.println(widget);
widget.setPropertyValue(propName, "test1");
assertThat(widget.getName(), equalTo("test1"));
assertThat(widget.getProperty(propName).getValue(), equalTo("test1"));
assertThat(widget.getProperty("name").getValue(), instanceOf(String.class));
assertThat(widget.getProperty("x").getValue(), instanceOf(Integer.class));
assertThat(widget.getProperty("visible").getValue(), instanceOf(Boolean.class));
}
Aggregations