Changeset 10436 in josm for trunk/test/unit/org/openstreetmap/josm/actions/SimplifyWayActionTest.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/SimplifyWayActionTest.java
r10263 r10436 54 54 OsmDataLayer layer = new OsmDataLayer(ds, "", null); 55 55 try { 56 Main. main.addLayer(layer);56 Main.getLayerManager().addLayer(layer); 57 57 assertTrue(ds.getSelected().isEmpty()); 58 58 action.actionPerformed(null); 59 59 } finally { 60 Main. main.removeLayer(layer);60 Main.getLayerManager().removeLayer(layer); 61 61 } 62 62 } … … 71 71 OsmDataLayer layer = new OsmDataLayer(ds, "", null); 72 72 try { 73 Main. main.addLayer(layer);73 Main.getLayerManager().addLayer(layer); 74 74 assertEquals(1, ds.getSelected().size()); 75 75 action.actionPerformed(null); 76 76 } finally { 77 Main. main.removeLayer(layer);77 Main.getLayerManager().removeLayer(layer); 78 78 } 79 79 } … … 90 90 OsmDataLayer layer = new OsmDataLayer(ds, "", null); 91 91 try { 92 Main. main.addLayer(layer);92 Main.getLayerManager().addLayer(layer); 93 93 assertEquals(11, ds.getSelected().size()); 94 94 action.actionPerformed(null); 95 95 } finally { 96 Main. main.removeLayer(layer);96 Main.getLayerManager().removeLayer(layer); 97 97 } 98 98 }
Note:
See TracChangeset
for help on using the changeset viewer.