use of com.sldeditor.test.unit.datasource.impl.DummyInternalSLDFile4 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();
}
Aggregations