Search in sources :

Example 1 with SLDTreeLeafText

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

the class SLDTreeLeafTextTest method testHasFill.

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

Example 2 with SLDTreeLeafText

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

the class SLDTreeLeafTextTest method testGetStroke.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafText#getStroke(org.opengis.style.Symbolizer)}.
 */
@Test
public void testGetStroke() {
    SLDTreeLeafText leaf = new SLDTreeLeafText();
    assertNull(leaf.getStroke(null));
    assertNull(leaf.getStroke(DefaultSymbols.createDefaultPointSymbolizer()));
    assertNull(leaf.getStroke(DefaultSymbols.createDefaultTextSymbolizer()));
}
Also used : SLDTreeLeafText(com.sldeditor.common.tree.leaf.SLDTreeLeafText) Test(org.junit.Test)

Example 3 with SLDTreeLeafText

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

the class SLDTreeLeafTextTest method testGetSymbolizer.

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

Example 4 with SLDTreeLeafText

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

the class SLDTreeLeafTextTest method testRemoveStroke.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafText#removeStroke(org.opengis.style.Symbolizer)}.
 */
@Test
public void testRemoveStroke() {
    SLDTreeLeafText leaf = new SLDTreeLeafText();
    TextSymbolizer textSymbolizer = DefaultSymbols.createDefaultTextSymbolizer();
    leaf.removeStroke(textSymbolizer);
// Does nothing
}
Also used : TextSymbolizer(org.geotools.styling.TextSymbolizer) SLDTreeLeafText(com.sldeditor.common.tree.leaf.SLDTreeLeafText) Test(org.junit.Test)

Example 5 with SLDTreeLeafText

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

the class SLDTreeLeafTextTest method testGetFill.

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

Aggregations

SLDTreeLeafText (com.sldeditor.common.tree.leaf.SLDTreeLeafText)9 Test (org.junit.Test)9 TextSymbolizer (org.geotools.styling.TextSymbolizer)4