Changeset 11713 in josm for trunk/test/unit
- Timestamp:
- 2017-03-10T02:28:00+01:00 (7 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 12 12 junit*.properties 13 13 foobar 14 pmd-josm.xml
-
- Property svn:ignore
-
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/AddNoteActionTest.java
r10945 r11713 38 38 try { 39 39 Main.getLayerManager().addLayer(layer); 40 AddNoteAction mapMode = new AddNoteAction( Main.map,new NoteData(Collections.<Note>emptyList()));40 AddNoteAction mapMode = new AddNoteAction(new NoteData(Collections.<Note>emptyList())); 41 41 MapMode oldMapMode = Main.map.mapMode; 42 42 assertTrue(Main.map.selectMapMode(mapMode)); -
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/DeleteActionTest.java
r10945 r11713 34 34 try { 35 35 Main.getLayerManager().addLayer(layer); 36 DeleteAction mapMode = new DeleteAction( Main.map);36 DeleteAction mapMode = new DeleteAction(); 37 37 MapMode oldMapMode = Main.map.mapMode; 38 38 assertTrue(Main.map.selectMapMode(mapMode)); -
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/ExtrudeActionTest.java
r10945 r11713 34 34 try { 35 35 Main.getLayerManager().addLayer(layer); 36 ExtrudeAction mapMode = new ExtrudeAction( Main.map);36 ExtrudeAction mapMode = new ExtrudeAction(); 37 37 MapMode oldMapMode = Main.map.mapMode; 38 38 assertTrue(Main.map.selectMapMode(mapMode)); -
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyActionTest.java
r10945 r11713 34 34 try { 35 35 Main.getLayerManager().addLayer(layer); 36 ImproveWayAccuracyAction mapMode = new ImproveWayAccuracyAction( Main.map);36 ImproveWayAccuracyAction mapMode = new ImproveWayAccuracyAction(); 37 37 MapMode oldMapMode = Main.map.mapMode; 38 38 assertTrue(Main.map.selectMapMode(mapMode)); -
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/MapViewMock.java
r10396 r11713 12 12 class MapViewMock extends MapView { 13 13 MapViewMock() { 14 super(Main.getLayerManager(), null , null);14 super(Main.getLayerManager(), null); 15 15 } 16 16 -
trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelperTest.java
r10824 r11713 4 4 import static org.junit.Assert.assertEquals; 5 5 6 import java.awt.Color;7 6 import java.io.FileNotFoundException; 8 7 import java.io.IOException; … … 18 17 import org.openstreetmap.josm.data.gpx.GpxData; 19 18 import org.openstreetmap.josm.data.gpx.WayPoint; 20 import org.openstreetmap.josm.data.preferences.ColorProperty;21 19 import org.openstreetmap.josm.io.GpxReaderTest; 22 20 import org.openstreetmap.josm.tools.ColorHelper; … … 127 125 static List<String> calculateColors(String fileName, String layerName, int n) throws IOException, SAXException { 128 126 final GpxData data = GpxReaderTest.parseGpxData(fileName); 129 final GpxDrawHelper gdh = new GpxDrawHelper(data , new ColorProperty("x", Color.MAGENTA));127 final GpxDrawHelper gdh = new GpxDrawHelper(data); 130 128 gdh.readPreferences(layerName); 131 129 gdh.calculateColors();
Note:
See TracChangeset
for help on using the changeset viewer.