use of com.sldeditor.render.RenderPanelImpl in project sldeditor by robward-scisys.
the class RenderPanelImplTest method testRasterData.
/**
* Test method for {@link com.sldeditor.render.RenderPanelImpl#RenderPanelImpl()}.
*/
@Test
void testRasterData() {
RenderPanelImpl render = new RenderPanelImpl(false);
render.setSize(200, 200);
RenderPanelImpl.setUnderTest(false);
DummyInternalSLDFile4 testSLD = new DummyInternalSLDFile4();
DataSourceInterface dataSource = DataSourceFactory.getDataSource();
dataSource.connect("test", SLDEditorFile.getInstance(), CheckAttributeFactory.getCheckList());
SelectedSymbol.getInstance().setSld(testSLD.getSLD());
render.renderSymbol();
render.dataSourceLoaded(GeometryTypeEnum.RASTER, false);
render.dataSourceLoaded(GeometryTypeEnum.RASTER, false);
render.useAntiAliasUpdated(true);
assertNotNull(render.getRuleRenderOptions());
render.backgroundColourUpdate(null);
render.backgroundColourUpdate(Color.WHITE);
RenderPanelImpl.setUnderTest(true);
DataSourceFactory.reset();
SelectedSymbol.destroyInstance();
}
use of com.sldeditor.render.RenderPanelImpl in project sldeditor by robward-scisys.
the class RenderPanelImplTest method testVectorData.
/**
* Test method for {@link com.sldeditor.render.RenderPanelImpl#RenderPanelImpl()}.
*/
@Test
void testVectorData() {
RenderPanelImpl render = new RenderPanelImpl(false);
render.setSize(200, 200);
RenderPanelImpl.setUnderTest(false);
DummyInternalSLDFile3 testSLD = new DummyInternalSLDFile3();
DataSourceInterface dataSource = DataSourceFactory.getDataSource();
dataSource.connect("test", SLDEditorFile.getInstance(), CheckAttributeFactory.getCheckList());
SelectedSymbol.getInstance().setSld(testSLD.getSLD());
render.renderSymbol();
render.dataSourceLoaded(GeometryTypeEnum.POINT, false);
render.dataSourceLoaded(GeometryTypeEnum.POINT, false);
render.useAntiAliasUpdated(true);
assertNotNull(render.getRuleRenderOptions());
render.backgroundColourUpdate(null);
render.backgroundColourUpdate(Color.BLUE);
RenderPanelImpl.setUnderTest(true);
DataSourceFactory.reset();
SelectedSymbol.destroyInstance();
}
Aggregations