@Ignore @Test public void testMultiLayerRenderer() throws Exception { Map map = ProjectFactory.eINSTANCE.createMap(); Layer layer = MapTests.createLayer( map, MapGraphicService.class, "file:/localhost/mapgraphic", //$NON-NLS-1$ "file:/localhost/mapgraphic#Scalebar", //$NON-NLS-1$ "layer1"); //$NON-NLS-1$ Layer layer2 = MapTests.createLayer( map, MapGraphicService.class, "file:/localhost/mapgraphic", //$NON-NLS-1$ "file:/localhost/mapgraphic#Scalebar", //$NON-NLS-1$ "layer2"); //$NON-NLS-1$ runVisibilityTest(map, layer, layer2, false); }
@Ignore @Test public void testNormalRenderer() throws Exception { Map map = ProjectFactory.eINSTANCE.createMap(); URL url1 = FileLocator.toFileURL( CatalogTestsUIPlugin.getDefault() .getBundle() .getEntry("data/streams.shp")); // $NON-NLS-1$ String fragment1 = url1.getFile(); fragment1 = fragment1.substring(0, fragment1.lastIndexOf('.')); fragment1 = "#" + fragment1.substring(fragment1.lastIndexOf("/") + 1); // $NON-NLS-1$ //$NON-NLS-2$ URL url2 = FileLocator.toFileURL( CatalogTestsUIPlugin.getDefault() .getBundle() .getEntry("data/lakes.shp")); // $NON-NLS-1$ String fragment2 = url2.getFile(); fragment2 = fragment2.substring(0, fragment2.lastIndexOf('.')); fragment2 = "#" + fragment2.substring(fragment2.lastIndexOf("/") + 1); // $NON-NLS-1$ //$NON-NLS-2$ Layer layer = MapTests.createLayer( map, ShpServiceImpl.class, url1.toExternalForm(), url1.toExternalForm() + fragment1, "layer1"); //$NON-NLS-1$ Layer layer2 = MapTests.createLayer( map, ShpServiceImpl.class, url2.toExternalForm(), url2.toExternalForm() + fragment2, "layer2"); //$NON-NLS-1$ runVisibilityTest(map, layer, layer2, true); }