use of com.sldeditor.common.tree.leaf.SLDTreeLeafPoint in project sldeditor by robward-scisys.
the class SLDTreeLeafPointTest method testCreateStroke.
/**
* Test method for
* {@link com.sldeditor.common.tree.leaf.SLDTreeLeafPoint#createStroke(org.opengis.style.Symbolizer)}.
*/
@Test
public void testCreateStroke() {
SLDTreeLeafPoint leaf = new SLDTreeLeafPoint();
PointSymbolizer pointSymbolizer = DefaultSymbols.createDefaultPointSymbolizer();
leaf.removeStroke(pointSymbolizer);
// Does nothing
}
use of com.sldeditor.common.tree.leaf.SLDTreeLeafPoint in project sldeditor by robward-scisys.
the class SLDTreeLeafPointTest method testGetStroke.
/**
* Test method for
* {@link com.sldeditor.common.tree.leaf.SLDTreeLeafPoint#getStroke(org.opengis.style.Symbolizer)}.
*/
@Test
public void testGetStroke() {
SLDTreeLeafPoint leaf = new SLDTreeLeafPoint();
assertNull(leaf.getStroke(null));
assertNull(leaf.getStroke(DefaultSymbols.createDefaultPointSymbolizer()));
PointSymbolizer pointSymbolizer = DefaultSymbols.createDefaultPointSymbolizer();
assertNull(leaf.getStroke(pointSymbolizer));
}
use of com.sldeditor.common.tree.leaf.SLDTreeLeafPoint in project sldeditor by robward-scisys.
the class SLDTreeLeafPointTest method testHasFill.
/**
* Test method for
* {@link com.sldeditor.common.tree.leaf.SLDTreeLeafPoint#hasFill(org.opengis.style.Symbolizer)}.
*/
@Test
public void testHasFill() {
SLDTreeLeafPoint leaf = new SLDTreeLeafPoint();
assertFalse(leaf.hasFill(null));
assertFalse(leaf.hasFill(DefaultSymbols.createDefaultPolygonSymbolizer()));
PointSymbolizer pointSymbolizer = DefaultSymbols.createDefaultPointSymbolizer();
assertTrue(leaf.hasFill(pointSymbolizer));
pointSymbolizer.setGraphic(null);
assertFalse(leaf.hasFill(pointSymbolizer));
}
use of com.sldeditor.common.tree.leaf.SLDTreeLeafPoint in project sldeditor by robward-scisys.
the class SLDTreeLeafPointTest method testHasStroke.
/**
* Test method for
* {@link com.sldeditor.common.tree.leaf.SLDTreeLeafPoint#hasStroke(org.opengis.style.Symbolizer)}.
*/
@Test
public void testHasStroke() {
SLDTreeLeafPoint leaf = new SLDTreeLeafPoint();
assertFalse(leaf.hasStroke(null));
assertFalse(leaf.hasStroke(DefaultSymbols.createDefaultPointSymbolizer()));
PointSymbolizer pointSymbolizer = DefaultSymbols.createDefaultPointSymbolizer();
assertFalse(leaf.hasStroke(pointSymbolizer));
}
use of com.sldeditor.common.tree.leaf.SLDTreeLeafPoint in project sldeditor by robward-scisys.
the class SLDTreeLeafPointTest method testRemoveStroke.
/**
* Test method for
* {@link com.sldeditor.common.tree.leaf.SLDTreeLeafPoint#removeStroke(org.opengis.style.Symbolizer)}.
*/
@Test
public void testRemoveStroke() {
SLDTreeLeafPoint leaf = new SLDTreeLeafPoint();
PointSymbolizer pointSymbolizer = DefaultSymbols.createDefaultPointSymbolizer();
leaf.removeStroke(pointSymbolizer);
// Does nothing
}
Aggregations