Changeset 10436 in josm for trunk/test/unit/org/openstreetmap/josm/actions/SelectByInternalPointActionTest.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/actions/SelectByInternalPointActionTest.java
r10413 r10436 39 39 public void testNoDataSet() { 40 40 while (Main.main.hasEditLayer()) { 41 Main. main.removeLayer(Main.getLayerManager().getEditLayer());41 Main.getLayerManager().removeLayer(Main.getLayerManager().getEditLayer()); 42 42 } 43 43 assertNull(JosmAction.getCurrentDataSet()); … … 69 69 ds.addPrimitive(r); 70 70 OsmDataLayer layer = new OsmDataLayer(ds, "", null); 71 Main. main.addLayer(layer);71 Main.getLayerManager().addLayer(layer); 72 72 return layer; 73 73 } … … 86 86 } finally { 87 87 // Ensure we clean the place before leaving, even if test fails. 88 Main. main.removeLayer(layer);88 Main.getLayerManager().removeLayer(layer); 89 89 } 90 90 } … … 101 101 } finally { 102 102 // Ensure we clean the place before leaving, even if test fails. 103 Main. main.removeLayer(layer);103 Main.getLayerManager().removeLayer(layer); 104 104 } 105 105 } … … 130 130 } finally { 131 131 // Ensure we clean the place before leaving, even if test fails. 132 Main. main.removeLayer(layer);132 Main.getLayerManager().removeLayer(layer); 133 133 } 134 134 }
Note:
See TracChangeset
for help on using the changeset viewer.