- Timestamp:
- 2017-04-29T22:03:28+02:00 (8 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/actions/mapmode
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/MapViewMock.java
r11713 r12024 9 9 import org.openstreetmap.josm.data.coor.EastNorth; 10 10 import org.openstreetmap.josm.gui.MapView; 11 import org.openstreetmap.josm.gui.layer.MainLayerManager; 11 12 12 13 class MapViewMock extends MapView { 13 14 MapViewMock() { 14 super(Main.getLayerManager(), null); 15 this(Main.getLayerManager()); 16 } 17 18 MapViewMock(MainLayerManager layerManager) { 19 super(layerManager, null); 15 20 } 16 21 -
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/SelectActionTest.java
r11978 r12024 23 23 import org.openstreetmap.josm.data.osm.Way; 24 24 import org.openstreetmap.josm.gui.MapFrame; 25 import org.openstreetmap.josm.gui.layer.MainLayerManager; 25 26 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 26 27 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 41 42 Field mv = SelectAction.class.getDeclaredField("mv"); 42 43 Utils.setObjectsAccessible(mv); 43 mv.set(this, new MapViewMock( ));44 mv.set(this, new MapViewMock(new MainLayerManager())); 44 45 } 45 46
Note:
See TracChangeset
for help on using the changeset viewer.