use of com.sldeditor.ui.detail.vendor.geoserver.marker.wkt.FieldConfigWKT in project sldeditor by robward-scisys.
the class FieldConfigWKTTest method testSetUpdateSymbolListener.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.wkt.FieldConfigWKT#setUpdateSymbolListener(com.sldeditor.ui.iface.UpdateSymbolInterface)}.
*/
@Test
public void testSetUpdateSymbolListener() {
boolean valueOnly = true;
FieldConfigWKT field = new FieldConfigWKT(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly), null, null, null);
field.setUpdateSymbolListener(null);
}
use of com.sldeditor.ui.detail.vendor.geoserver.marker.wkt.FieldConfigWKT in project sldeditor by robward-scisys.
the class FieldConfigWKTTest method testGetSymbolClass.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.wkt.FieldConfigWKT#getSymbolClass()}.
*/
@Test
public void testGetSymbolClass() {
boolean valueOnly = true;
FieldConfigWKT field = new FieldConfigWKT(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly), null, null, null);
assertEquals(ExternalGraphicImpl.class, field.getSymbolClass());
}
use of com.sldeditor.ui.detail.vendor.geoserver.marker.wkt.FieldConfigWKT in project sldeditor by robward-scisys.
the class FieldConfigWKTTest method testCreateCopy.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.wkt.FieldConfigWKT#createCopy(com.sldeditor.ui.detail.config.FieldConfigBase)}.
*/
@Test
public void testCreateCopy() {
boolean valueOnly = true;
class TestFieldConfigWKT extends FieldConfigWKT {
public TestFieldConfigWKT(FieldConfigCommonData commonData) {
super(commonData, null, null, null);
}
public FieldConfigPopulate callCreateCopy(FieldConfigBase fieldConfigBase) {
return createCopy(fieldConfigBase);
}
}
TestFieldConfigWKT field = new TestFieldConfigWKT(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly));
FieldConfigWKT copy = (FieldConfigWKT) field.callCreateCopy(null);
assertNull(copy);
copy = (FieldConfigWKT) field.callCreateCopy(field);
assertEquals(field.getFieldId(), copy.getFieldId());
assertTrue(field.getLabel().compareTo(copy.getLabel()) == 0);
assertEquals(field.isValueOnly(), copy.isValueOnly());
}
use of com.sldeditor.ui.detail.vendor.geoserver.marker.wkt.FieldConfigWKT in project sldeditor by robward-scisys.
the class FieldConfigWKTTest method testSetVisible.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.wkt.FieldConfigWKT#setVisible(boolean)}.
*/
@Test
public void testSetVisible() {
boolean valueOnly = true;
FieldConfigWKT field = new FieldConfigWKT(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly), null, null, null);
boolean expectedValue = true;
field.setVisible(expectedValue);
field.createUI();
expectedValue = false;
field.setVisible(expectedValue);
}
use of com.sldeditor.ui.detail.vendor.geoserver.marker.wkt.FieldConfigWKT in project sldeditor by robward-scisys.
the class FieldConfigWKTTest method testGetFieldList.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.wkt.FieldConfigWKT#getFieldList(com.sldeditor.ui.detail.GraphicPanelFieldManager)}.
*/
@Test
public void testGetFieldList() {
boolean valueOnly = true;
FieldConfigWKT field = new FieldConfigWKT(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly), null, null, null);
assertEquals(1, field.getFieldList(null).size());
}
Aggregations