use of com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow in project sldeditor by robward-scisys.
the class FieldConfigArrowTest method testAttributeSelection.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow#attributeSelection(java.lang.String)}.
*/
@Test
public void testAttributeSelection() {
boolean valueOnly = true;
FieldConfigArrow field = new FieldConfigArrow(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly), null, null, null);
field.attributeSelection("field");
// Does nothing
}
use of com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow in project sldeditor by robward-scisys.
the class FieldConfigArrowTest method testGenerateExpression.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow#generateExpression()}.
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow#populateExpression(java.lang.Object, org.opengis.filter.expression.Expression)}.
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow#setTestValue(com.sldeditor.ui.detail.config.FieldId, java.lang.String)}.
*/
@Test
public void testGenerateExpression() {
boolean valueOnly = true;
FieldConfigArrow field = new FieldConfigArrow(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly), null, null, null);
field.populateExpression((Double) null);
field.populateField((String) null);
assertNull(field.getStringValue());
// Create ui
field.createUI();
field.populateExpression((Double) null);
String expectedValue = "string value";
field.populateExpression(expectedValue);
assertFalse(expectedValue.compareTo(field.getStringValue()) == 0);
expectedValue = "extshape://arrow?hr=1.2&t=0.34&ab=0.5";
field.setTestValue(null, expectedValue);
field.populateExpression(expectedValue);
assertTrue(expectedValue.compareTo(field.getStringValue()) == 0);
}
use of com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow in project sldeditor by robward-scisys.
the class FieldConfigArrowTest method testGetBasePanel.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow#getBasePanel()}.
*/
@Test
public void testGetBasePanel() {
boolean valueOnly = true;
FieldConfigArrow field = new FieldConfigArrow(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly), null, null, null);
assertNull(field.getBasePanel());
}
use of com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow in project sldeditor by robward-scisys.
the class FieldConfigArrowTest method testGetFill.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow#getFill(org.opengis.style.GraphicFill, com.sldeditor.ui.detail.GraphicPanelFieldManager)}.
*/
@Test
public void testGetFill() {
boolean valueOnly = true;
FieldConfigArrow field = new FieldConfigArrow(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly), null, null, null);
assertNull(field.getFill(null, null));
}
use of com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow in project sldeditor by robward-scisys.
the class FieldConfigArrowTest method testGetFieldList.
/**
* Test method for
* {@link com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow#getFieldList(com.sldeditor.ui.detail.GraphicPanelFieldManager)}.
*/
@Test
public void testGetFieldList() {
boolean valueOnly = true;
FieldConfigArrow field = new FieldConfigArrow(new FieldConfigCommonData(String.class, FieldIdEnum.NAME, "test label", valueOnly), null, null, null);
assertEquals(4, field.getFieldList(null).size());
}
Aggregations