Changeset 8949 in josm for trunk/test
- Timestamp:
- 2015-10-26T01:10:35+01:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/actions/mapmode
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/SelectActionTest.java
r8857 r8949 7 7 import static org.junit.Assert.fail; 8 8 9 import java.awt.Cursor;10 9 import java.awt.event.InputEvent; 11 10 import java.awt.event.MouseEvent; 12 import java.awt.event.MouseListener;13 import java.awt.geom.Point2D;14 11 import java.lang.reflect.Field; 15 12 import java.util.Arrays; … … 26 23 import org.openstreetmap.josm.data.osm.Way; 27 24 import org.openstreetmap.josm.gui.MapFrame; 28 import org.openstreetmap.josm.gui.MapView;29 import org.openstreetmap.josm.gui.layer.Layer;30 25 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 31 26 … … 34 29 */ 35 30 public class SelectActionTest { 36 37 private class MapViewMock extends MapView {38 private OsmDataLayer layer;39 private DataSet currentDataSet;40 41 MapViewMock(DataSet dataSet, OsmDataLayer layer) {42 super(null, null);43 this.layer = layer;44 this.currentDataSet = dataSet;45 }46 47 @Override48 public EastNorth getEastNorth(int x, int y) {49 return new EastNorth(x, y);50 }51 52 @Override53 public void addMouseListener(MouseListener ml) {}54 55 @Override56 public void removeMouseListener(MouseListener ml) {}57 58 @Override59 public void setVirtualNodesEnabled(boolean enabled) {}60 61 @Override62 public void setNewCursor(Cursor cursor, Object reference) {}63 64 @Override65 public void setNewCursor(int cursor, Object reference) {}66 67 @Override68 public boolean isActiveLayerVisible() {69 return true;70 }71 72 @Override73 public void requestClearRect() {}74 75 @Override76 public Point2D getPoint2D(EastNorth p) {77 return new Point2D.Double(p.getX(), p.getY());78 }79 80 @Override81 public void setActiveLayer(Layer layer) {}82 83 @Override84 public Layer getActiveLayer() {85 return layer;86 }87 88 @Override89 protected DataSet getCurrentDataSet() {90 return currentDataSet;91 }92 }93 31 94 32 /** … … 134 72 */ 135 73 @BeforeClass 136 public static void setUp () {74 public static void setUpBeforeClass() { 137 75 JOSMFixture.createUnitTestFixture().init(true); 138 76 }
Note:
See TracChangeset
for help on using the changeset viewer.