use of com.sldeditor.common.data.SLDData in project sldeditor by robward-scisys.
the class SLDDataTest method testLegendOptions.
/**
* Test legend options.
*/
@Test
public void testLegendOptions() {
SLDData data = new SLDData(null, null);
LegendOptionData legendOptions = null;
assertNotNull(data.getLegendOptions());
data.setLegendOptions(legendOptions);
assertNotNull(data.getLegendOptions());
legendOptions = new LegendOptionData();
data.setLegendOptions(legendOptions);
assertEquals(legendOptions, data.getLegendOptions());
}
use of com.sldeditor.common.data.SLDData in project sldeditor by robward-scisys.
the class SLDDataTest method testFieldList.
/**
* Test field list.
*/
@Test
public void testFieldList() {
List<DataSourceAttributeData> fieldList = new ArrayList<DataSourceAttributeData>();
fieldList.add(new DataSourceAttributeData("Field 1", String.class, null));
fieldList.add(new DataSourceAttributeData("Field 2", Double.class, null));
SLDData data = new SLDData(null, null);
data.setFieldList(fieldList);
assertEquals(fieldList, data.getFieldList());
}
use of com.sldeditor.common.data.SLDData in project sldeditor by robward-scisys.
the class SLDDataTest method testConnectionData.
/**
* Test connection data.
*/
@Test
public void testConnectionData() {
SLDData data = new SLDData(null, null);
GeoServerConnection connectionData = new GeoServerConnection();
data.setConnectionData(connectionData);
assertEquals(connectionData, data.getConnectionData());
}
use of com.sldeditor.common.data.SLDData in project sldeditor by robward-scisys.
the class SLDDataTest method testReadOnly.
/**
* Test read only.
*/
@Test
public void testReadOnly() {
SLDData data = new SLDData(null, null);
data.setReadOnly(true);
assertTrue(data.isReadOnly());
data.setReadOnly(false);
assertFalse(data.isReadOnly());
}
use of com.sldeditor.common.data.SLDData in project sldeditor by robward-scisys.
the class SLDDataTest method testStyle.
/**
* Test style.
*/
@Test
public void testStyle() {
StyleWrapper styleWrapper = new StyleWrapper("workspace", "style");
SLDData data = new SLDData(styleWrapper, null);
assertEquals(styleWrapper, data.getStyle());
}
Aggregations