Changeset 33864 in osm for applications
- Timestamp:
- 2017-11-22T00:18:31+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/ImportImagePlugin/test/unit/org/openstreetmap/josm/plugins/ImportImagePlugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ImportImagePlugin/test/unit/org/openstreetmap/josm/plugins/ImportImagePlugin/GeoTiffReaderTest.java
r33028 r33864 17 17 import org.junit.Rule; 18 18 import org.junit.Test; 19 import org.openstreetmap.josm.Main;20 19 import org.openstreetmap.josm.TestUtils; 21 20 import org.openstreetmap.josm.testutils.JOSMTestRules; 21 import org.openstreetmap.josm.tools.Logging; 22 22 23 23 /** … … 37 37 for (Path p : listDataFiles("tif")) { 38 38 File file = p.toFile(); 39 Main.info("Testing reading file "+file.getPath());39 Logging.info("Testing reading file "+file.getPath()); 40 40 GridCoverage2D grid = PluginOperations.createGridFromFile(file, null, false); 41 41 assertNotNull(grid); -
applications/editors/josm/plugins/ImportImagePlugin/test/unit/org/openstreetmap/josm/plugins/ImportImagePlugin/ImageLayerTest.java
r33372 r33864 10 10 import org.junit.Rule; 11 11 import org.junit.Test; 12 import org.openstreetmap.josm.Main;13 12 import org.openstreetmap.josm.TestUtils; 13 import org.openstreetmap.josm.gui.MainApplication; 14 14 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 15 15 import org.openstreetmap.josm.io.OsmReader; … … 34 34 @Test 35 35 public void testTicket14894() throws Exception { 36 assertTrue(Main .getLayerManager().getLayers().isEmpty());36 assertTrue(MainApplication.getLayerManager().getLayers().isEmpty()); 37 37 // Step 1: add .osm layer 38 38 try (InputStream in = TestUtils.getRegressionDataStream(14894, "14894.osm")) { 39 Main .getLayerManager().addLayer(new OsmDataLayer(OsmReader.parseDataSet(in, null), "14894", null));39 MainApplication.getLayerManager().addLayer(new OsmDataLayer(OsmReader.parseDataSet(in, null), "14894", null)); 40 40 } 41 41 // Step 2: try to import image 42 Main .getLayerManager().addLayer(new ImageLayer(new File(TestUtils.getRegressionDataFile(14894, "14894.png"))));43 assertEquals(2, Main .getLayerManager().getLayers().size());42 MainApplication.getLayerManager().addLayer(new ImageLayer(new File(TestUtils.getRegressionDataFile(14894, "14894.png")))); 43 assertEquals(2, MainApplication.getLayerManager().getLayers().size()); 44 44 } 45 45 }
Note:
See TracChangeset
for help on using the changeset viewer.