Search in sources :

Example 1 with SLDTreeLeafLine

use of com.sldeditor.common.tree.leaf.SLDTreeLeafLine in project sldeditor by robward-scisys.

the class SLDTreeLeafLineTest method testGetFill.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafLine#getFill(org.opengis.style.Symbolizer)}.
 */
@Test
public void testGetFill() {
    SLDTreeLeafLine leaf = new SLDTreeLeafLine();
    assertNull(leaf.getFill(null));
}
Also used : SLDTreeLeafLine(com.sldeditor.common.tree.leaf.SLDTreeLeafLine) Test(org.junit.Test)

Example 2 with SLDTreeLeafLine

use of com.sldeditor.common.tree.leaf.SLDTreeLeafLine in project sldeditor by robward-scisys.

the class SLDTreeLeafLineTest method testHasFill.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafLine#hasFill(org.opengis.style.Symbolizer)}.
 */
@Test
public void testHasFill() {
    SLDTreeLeafLine leaf = new SLDTreeLeafLine();
    assertFalse(leaf.hasFill(null));
}
Also used : SLDTreeLeafLine(com.sldeditor.common.tree.leaf.SLDTreeLeafLine) Test(org.junit.Test)

Example 3 with SLDTreeLeafLine

use of com.sldeditor.common.tree.leaf.SLDTreeLeafLine in project sldeditor by robward-scisys.

the class SLDTreeLeafLineTest method testGetSymbolizer.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafLine#getSymbolizer()}.
 */
@Test
public void testGetSymbolizer() {
    SLDTreeLeafLine leaf = new SLDTreeLeafLine();
    assertEquals(LineSymbolizerImpl.class, leaf.getSymbolizer());
}
Also used : SLDTreeLeafLine(com.sldeditor.common.tree.leaf.SLDTreeLeafLine) Test(org.junit.Test)

Example 4 with SLDTreeLeafLine

use of com.sldeditor.common.tree.leaf.SLDTreeLeafLine in project sldeditor by robward-scisys.

the class SLDTreeLeafLineTest method testHasStroke.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafLine#hasStroke(org.opengis.style.Symbolizer)}.
 */
@Test
public void testHasStroke() {
    SLDTreeLeafLine leaf = new SLDTreeLeafLine();
    assertTrue(leaf.hasStroke(null));
}
Also used : SLDTreeLeafLine(com.sldeditor.common.tree.leaf.SLDTreeLeafLine) Test(org.junit.Test)

Example 5 with SLDTreeLeafLine

use of com.sldeditor.common.tree.leaf.SLDTreeLeafLine in project sldeditor by robward-scisys.

the class SLDTreeLeafLineTest method testGetStroke.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafLine#getStroke(org.opengis.style.Symbolizer)}.
 */
@Test
public void testGetStroke() {
    SLDTreeLeafLine leaf = new SLDTreeLeafLine();
    assertNull(leaf.getStroke(null));
    PolygonSymbolizer polygonSymbolizer = DefaultSymbols.createDefaultPolygonSymbolizer();
    assertNull(leaf.getStroke(polygonSymbolizer));
    LineSymbolizer lineSymbolizer = DefaultSymbols.createDefaultLineSymbolizer();
    Stroke stroke = leaf.getStroke(lineSymbolizer);
    assertEquals(stroke, lineSymbolizer.getStroke());
}
Also used : SLDTreeLeafLine(com.sldeditor.common.tree.leaf.SLDTreeLeafLine) Stroke(org.geotools.styling.Stroke) PolygonSymbolizer(org.geotools.styling.PolygonSymbolizer) LineSymbolizer(org.geotools.styling.LineSymbolizer) Test(org.junit.Test)

Aggregations

SLDTreeLeafLine (com.sldeditor.common.tree.leaf.SLDTreeLeafLine)9 Test (org.junit.Test)9 LineSymbolizer (org.geotools.styling.LineSymbolizer)3 PolygonSymbolizer (org.geotools.styling.PolygonSymbolizer)1 Stroke (org.geotools.styling.Stroke)1