Changeset 11713 in josm for trunk/test


Ignore:
Timestamp:
2017-03-10T02:28:00+01:00 (3 years ago)
Author:
Don-vip
Message:

add Ant target to run PMD (only few rules for now), fix violations

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1212junit*.properties
        1313foobar
         14pmd-josm.xml
  • trunk/test/unit/org/openstreetmap/josm/actions/mapmode/AddNoteActionTest.java

    r10945 r11713  
    3838        try {
    3939            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()));
    4141            MapMode oldMapMode = Main.map.mapMode;
    4242            assertTrue(Main.map.selectMapMode(mapMode));
  • trunk/test/unit/org/openstreetmap/josm/actions/mapmode/DeleteActionTest.java

    r10945 r11713  
    3434        try {
    3535            Main.getLayerManager().addLayer(layer);
    36             DeleteAction mapMode = new DeleteAction(Main.map);
     36            DeleteAction mapMode = new DeleteAction();
    3737            MapMode oldMapMode = Main.map.mapMode;
    3838            assertTrue(Main.map.selectMapMode(mapMode));
  • trunk/test/unit/org/openstreetmap/josm/actions/mapmode/ExtrudeActionTest.java

    r10945 r11713  
    3434        try {
    3535            Main.getLayerManager().addLayer(layer);
    36             ExtrudeAction mapMode = new ExtrudeAction(Main.map);
     36            ExtrudeAction mapMode = new ExtrudeAction();
    3737            MapMode oldMapMode = Main.map.mapMode;
    3838            assertTrue(Main.map.selectMapMode(mapMode));
  • trunk/test/unit/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyActionTest.java

    r10945 r11713  
    3434        try {
    3535            Main.getLayerManager().addLayer(layer);
    36             ImproveWayAccuracyAction mapMode = new ImproveWayAccuracyAction(Main.map);
     36            ImproveWayAccuracyAction mapMode = new ImproveWayAccuracyAction();
    3737            MapMode oldMapMode = Main.map.mapMode;
    3838            assertTrue(Main.map.selectMapMode(mapMode));
  • trunk/test/unit/org/openstreetmap/josm/actions/mapmode/MapViewMock.java

    r10396 r11713  
    1212class MapViewMock extends MapView {
    1313    MapViewMock() {
    14         super(Main.getLayerManager(), null, null);
     14        super(Main.getLayerManager(), null);
    1515    }
    1616
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelperTest.java

    r10824 r11713  
    44import static org.junit.Assert.assertEquals;
    55
    6 import java.awt.Color;
    76import java.io.FileNotFoundException;
    87import java.io.IOException;
     
    1817import org.openstreetmap.josm.data.gpx.GpxData;
    1918import org.openstreetmap.josm.data.gpx.WayPoint;
    20 import org.openstreetmap.josm.data.preferences.ColorProperty;
    2119import org.openstreetmap.josm.io.GpxReaderTest;
    2220import org.openstreetmap.josm.tools.ColorHelper;
     
    127125    static List<String> calculateColors(String fileName, String layerName, int n) throws IOException, SAXException {
    128126        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);
    130128        gdh.readPreferences(layerName);
    131129        gdh.calculateColors();
Note: See TracChangeset for help on using the changeset viewer.