use of com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow in project sldeditor by robward-scisys.
the class FieldConfigArrowTest method testSetUpdateSymbolListener.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow#setUpdateSymbolListener(com.sldeditor.ui.iface.UpdateSymbolInterface)}.
*/
@Test
public void testSetUpdateSymbolListener() {
boolean valueOnly = true;
FieldConfigArrow field = new FieldConfigArrow(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly), null, null, null);
field.setUpdateSymbolListener(null);
}
use of com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow in project sldeditor by robward-scisys.
the class FieldConfigArrowTest method testCreateCopy.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow#createCopy(com.sldeditor.ui.detail.config.FieldConfigBase)}.
*/
@Test
public void testCreateCopy() {
boolean valueOnly = true;
class TestFieldConfigArrow extends FieldConfigArrow {
public TestFieldConfigArrow(FieldConfigCommonData commonData) {
super(commonData, null, null, null);
}
public FieldConfigPopulate callCreateCopy(FieldConfigBase fieldConfigBase) {
return createCopy(fieldConfigBase);
}
}
TestFieldConfigArrow field = new TestFieldConfigArrow(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly));
FieldConfigArrow copy = (FieldConfigArrow) field.callCreateCopy(null);
assertNull(copy);
copy = (FieldConfigArrow) 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.arrow.FieldConfigArrow in project sldeditor by robward-scisys.
the class FieldConfigArrowTest method testRevertToDefaultValue.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow#revertToDefaultValue()}.
*/
@Test
public void testRevertToDefaultValue() {
boolean valueOnly = true;
FieldConfigArrow field = new FieldConfigArrow(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly), null, null, null);
field.revertToDefaultValue();
field.createUI();
field.revertToDefaultValue();
}
use of com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow in project sldeditor by robward-scisys.
the class FieldConfigArrowTest method testGetVendorOption.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow#getVendorOption()}.
*/
@Test
public void testGetVendorOption() {
boolean valueOnly = true;
FieldConfigArrow field = new FieldConfigArrow(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly), null, null, null);
assertEquals(VendorOptionManager.getInstance().getDefaultVendorOptionVersion(), field.getVendorOption());
}
use of com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow in project sldeditor by robward-scisys.
the class FieldConfigArrowTest method testGetSymbolClass.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow#getSymbolClass()}.
*/
@Test
public void testGetSymbolClass() {
boolean valueOnly = true;
FieldConfigArrow field = new FieldConfigArrow(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly), null, null, null);
assertEquals(ExternalGraphicImpl.class, field.getSymbolClass());
}
Aggregations