Changeset 10436 in josm for trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/DownloadWmsAlongTrackActionTest.java
- Timestamp:
- 2016-06-20T02:47:43+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/DownloadWmsAlongTrackActionTest.java
r10222 r10436 47 47 TMSLayer layer = new TMSLayer(new ImageryInfo("OSM TMS", "https://a.tile.openstreetmap.org/{zoom}/{x}/{y}.png", "tms", null, null)); 48 48 try { 49 Main. main.addLayer(layer);49 Main.getLayerManager().addLayer(layer); 50 50 TMSLayer.getCache().clear(); 51 51 assertTrue(TMSLayer.getCache().getMatching(".*").isEmpty()); … … 58 58 } finally { 59 59 // Ensure we clean the place before leaving, even if test fails. 60 Main. main.removeLayer(layer);60 Main.getLayerManager().removeLayer(layer); 61 61 } 62 62 }
Note:
See TracChangeset
for help on using the changeset viewer.