Search in sources :

Example 11 with VOGeoServerTextSymbolizer2

use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.

the class VOGeoServerTextSymbolizer2Test method testUpdateSymbolTextSymbolizer.

/**
 * Test method for {@link
 * com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#updateSymbol(org.geotools.styling.TextSymbolizer)}.
 */
@Test
public void testUpdateSymbolTextSymbolizer() {
    TextSymbolizerDetails panel = new TextSymbolizerDetails();
    VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
    TextSymbolizer symbolizer = null;
    testObj.updateSymbol(symbolizer);
}
Also used : TextSymbolizer(org.geotools.styling.TextSymbolizer) VOGeoServerTextSymbolizer2(com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2) TextSymbolizerDetails(com.sldeditor.ui.detail.TextSymbolizerDetails) Test(org.junit.jupiter.api.Test)

Example 12 with VOGeoServerTextSymbolizer2

use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.

the class VOGeoServerTextSymbolizer2Test method testPopulateSelectedChannelType.

/**
 * Test method for {@link
 * com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#populate(org.geotools.styling.SelectedChannelType)}.
 */
@Test
void testPopulateSelectedChannelType() {
    TextSymbolizerDetails panel = new TextSymbolizerDetails();
    VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
    SelectedChannelType channelType = null;
    testObj.populate(channelType);
}
Also used : SelectedChannelType(org.geotools.styling.SelectedChannelType) VOGeoServerTextSymbolizer2(com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2) TextSymbolizerDetails(com.sldeditor.ui.detail.TextSymbolizerDetails) Test(org.junit.jupiter.api.Test)

Example 13 with VOGeoServerTextSymbolizer2

use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.

the class VOGeoServerTextSymbolizer2Test method testGetMinimumVersion.

/**
 * Test method for {@link
 * com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#getMinimumVersion(java.lang.Object,
 * java.lang.Object, java.util.List)}.
 */
@Test
public void testGetMinimumVersion() {
    TextSymbolizerDetails panel = new TextSymbolizerDetails();
    VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
    TextSymbolizer2 symbolizer = null;
    testObj.updateSymbol(symbolizer);
    symbolizer = (TextSymbolizer2) DefaultSymbols.createDefaultTextSymbolizer();
    FilterFactory ff = CommonFactoryFinder.getFilterFactory();
    symbolizer.setSnippet(ff.literal("Test snippet"));
    List<VendorOptionPresent> vendorOptionsPresentList = null;
    testObj.getMinimumVersion(symbolizer, "", vendorOptionsPresentList);
    vendorOptionsPresentList = new ArrayList<VendorOptionPresent>();
    testObj.getMinimumVersion(symbolizer, "", vendorOptionsPresentList);
}
Also used : VendorOptionPresent(com.sldeditor.common.vendoroption.minversion.VendorOptionPresent) VOGeoServerTextSymbolizer2(com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2) TextSymbolizer2(org.geotools.styling.TextSymbolizer2) VOGeoServerTextSymbolizer2(com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2) FilterFactory(org.opengis.filter.FilterFactory) TextSymbolizerDetails(com.sldeditor.ui.detail.TextSymbolizerDetails) Test(org.junit.jupiter.api.Test)

Example 14 with VOGeoServerTextSymbolizer2

use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.

the class VOGeoServerTextSymbolizer2Test method testPopulateRasterSymbolizer.

/**
 * Test method for {@link
 * com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#populate(org.geotools.styling.RasterSymbolizer)}.
 */
@Test
public void testPopulateRasterSymbolizer() {
    TextSymbolizerDetails panel = new TextSymbolizerDetails();
    VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
    RasterSymbolizer symbolizer = null;
    testObj.updateSymbol(symbolizer);
}
Also used : RasterSymbolizer(org.geotools.styling.RasterSymbolizer) VOGeoServerTextSymbolizer2(com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2) TextSymbolizerDetails(com.sldeditor.ui.detail.TextSymbolizerDetails) Test(org.junit.jupiter.api.Test)

Example 15 with VOGeoServerTextSymbolizer2

use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.

the class VOGeoServerTextSymbolizer2Test method testGetPanel.

/**
 * Test method for {@link
 * com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#getPanel()}.
 */
@Test
public void testGetPanel() {
    TextSymbolizerDetails panel = new TextSymbolizerDetails();
    VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
    assertNotNull(testObj.getPanel());
}
Also used : VOGeoServerTextSymbolizer2(com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2) TextSymbolizerDetails(com.sldeditor.ui.detail.TextSymbolizerDetails) Test(org.junit.jupiter.api.Test)

Aggregations

TextSymbolizerDetails (com.sldeditor.ui.detail.TextSymbolizerDetails)22 VOGeoServerTextSymbolizer2 (com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2)22 Test (org.junit.jupiter.api.Test)22 PolygonSymbolizer (org.geotools.styling.PolygonSymbolizer)3 RasterSymbolizer (org.geotools.styling.RasterSymbolizer)3 VendorOptionPresent (com.sldeditor.common.vendoroption.minversion.VendorOptionPresent)2 FeatureTypeStyle (org.geotools.styling.FeatureTypeStyle)2 SelectedChannelType (org.geotools.styling.SelectedChannelType)2 TextSymbolizer (org.geotools.styling.TextSymbolizer)2 TextSymbolizer2 (org.geotools.styling.TextSymbolizer2)2 FilterFactory (org.opengis.filter.FilterFactory)2 SelectedSymbol (com.sldeditor.common.data.SelectedSymbol)1 FieldIdEnum (com.sldeditor.common.xml.ui.FieldIdEnum)1 UpdateSymbolInterface (com.sldeditor.ui.iface.UpdateSymbolInterface)1 File (java.io.File)1 MalformedURLException (java.net.MalformedURLException)1 ArrayList (java.util.ArrayList)1 Graphic (org.geotools.styling.Graphic)1 OtherText (org.geotools.styling.OtherText)1 OtherTextImpl (org.geotools.styling.OtherTextImpl)1