use of com.sldeditor.create.sld.NewLineSLD in project sldeditor by robward-scisys.
the class NewLineSLDTest method testNewLineSLD.
/**
* Test new line sld.
*/
@Test
public void testNewLineSLD() {
NewLineSLD newData = new NewLineSLD();
StyledLayerDescriptor sld = newData.create();
assertTrue(sld.layers().size() == 1);
StyledLayer styledLayer = sld.layers().get(0);
NamedLayer namedLayer = (NamedLayer) styledLayer;
Symbolizer symbolizer = namedLayer.styles().get(0).featureTypeStyles().get(0).rules().get(0).symbolizers().get(0);
assertTrue(symbolizer instanceof LineSymbolizer);
}
use of com.sldeditor.create.sld.NewLineSLD in project sldeditor by robward-scisys.
the class NewSLDFactory method populateAvailableList.
/**
* Populate available list of SLDs.
*
* @return the list
*/
private static List<NewSLDInterface> populateAvailableList() {
List<NewSLDInterface> list = new ArrayList<NewSLDInterface>();
list.add(new NewPointSLD());
list.add(new NewLineSLD());
list.add(new NewPolygonSLD());
list.add(new NewRasterSLD());
return list;
}
Aggregations