use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.
the class VOGeoServerTextSymbolizer2Test method testSetParentPanel.
/**
* Test method for {@link
* com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#setParentPanel(com.sldeditor.ui.iface.UpdateSymbolInterface)}.
*/
@Test
public void testSetParentPanel() {
class TestUpdateSymbolInterface implements UpdateSymbolInterface {
public boolean called = false;
@Override
public void dataChanged(FieldIdEnum changedField) {
called = true;
}
}
TestUpdateSymbolInterface receiver = new TestUpdateSymbolInterface();
TextSymbolizerDetails panel = new TextSymbolizerDetails();
VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
testObj.setParentPanel(receiver);
testObj.dataChanged(FieldIdEnum.ANGLE);
assertTrue(receiver.called);
assertEquals(receiver, testObj.getParentPanel());
}
use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.
the class VOGeoServerTextSymbolizer2Test method testUpdateSymbolRasterSymbolizer.
/**
* Test method for {@link
* com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#updateSymbol(org.geotools.styling.RasterSymbolizer)}.
*/
@Test
public void testUpdateSymbolRasterSymbolizer() {
TextSymbolizerDetails panel = new TextSymbolizerDetails();
VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
RasterSymbolizer symbolizer = null;
testObj.updateSymbol(symbolizer);
}
use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.
the class VOGeoServerTextSymbolizer2Test method testGetFieldDataManager.
/**
* Test method for {@link
* com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#getFieldDataManager()}.
*/
@Test
public void testGetFieldDataManager() {
TextSymbolizerDetails panel = new TextSymbolizerDetails();
VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
assertNotNull(testObj.getFieldDataManager());
}
use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.
the class VOGeoServerTextSymbolizer2Test method testPopulateSelectedSymbol.
/**
* Test method for {@link
* com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#populate(com.sldeditor.common.data.SelectedSymbol)}.
*/
@Test
public void testPopulateSelectedSymbol() {
TextSymbolizerDetails panel = new TextSymbolizerDetails();
VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
SelectedSymbol selectedSymbol = null;
testObj.populate(selectedSymbol);
}
use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.
the class VOGeoServerTextSymbolizer2Test method testUpdateSymbolFeatureTypeStyle.
/**
* Test method for {@link
* com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#updateSymbol(org.geotools.styling.FeatureTypeStyle)}.
*/
@Test
public void testUpdateSymbolFeatureTypeStyle() {
TextSymbolizerDetails panel = new TextSymbolizerDetails();
VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
FeatureTypeStyle style = null;
testObj.updateSymbol(style);
}
Aggregations