Ignore:
Timestamp:
2014-02-24T17:49:12+01:00 (10 years ago)
Author:
Don-vip
Message:

javadoc/code style/minor refactorization

Location:
trunk/test/unit/org/openstreetmap/josm/data/projection
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/projection/EllipsoidTest.java

    r6334 r6881  
    4141            maxErrLon = Math.max(maxErrLon, Math.abs(lon - ll.lon()));
    4242        }
    43         //System.err.println(String.format("maxerror lat: %s maxerror lon: %s", maxErrLat, maxErrLon));
    4443    }
    4544}
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java

    r6471 r6881  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.data.projection;
    3 
    43
    54import java.io.BufferedReader;
     
    2524import org.openstreetmap.josm.Main;
    2625import org.openstreetmap.josm.data.Bounds;
    27 import org.openstreetmap.josm.data.Preferences;
    2826import org.openstreetmap.josm.data.coor.EastNorth;
    2927import org.openstreetmap.josm.data.coor.LatLon;
     
    147145    }
    148146
     147    /**
     148     * Setup test.
     149     */
    149150    @BeforeClass
    150151    public static void setUp() {
     
    198199            throw new AssertionError(fail.toString());
    199200        }
    200 
    201201    }
    202202}
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionTest.java

    r6334 r6881  
    1212public class ProjectionTest {
    1313
    14     private static final boolean debug = false;
    1514    private static Random rand = new Random(System.currentTimeMillis());
    1615
     
    6463            double maxErrLat = 0, maxErrLon = 0;
    6564            Bounds b = p.getWorldBoundsLatLon();
    66    
     65
    6766            text += String.format("*** %s %s%n", p.toString(), p.toCode());
    6867            for (int num=0; num < 1000; ++num) {
    69    
     68
    7069                double lat = rand.nextDouble() * (b.getMax().lat() - b.getMin().lat()) + b.getMin().lat();
    7170                double lon = rand.nextDouble() * (b.getMax().lon() - b.getMin().lon()) + b.getMin().lon();
    72    
     71
    7372                LatLon ll = new LatLon(lat, lon);
    74    
     73
    7574                for (int i=0; i<10; ++i) {
    7675                    EastNorth en = p.latlon2eastNorth(ll);
     
    8079                maxErrLon = Math.max(maxErrLon, Math.abs(lon - ll.lon()));
    8180            }
    82    
     81
    8382            String mark = "";
    8483            if (maxErrLat + maxErrLon > 1e-5) {
  • trunk/test/unit/org/openstreetmap/josm/data/projection/SwissGridTest.java

    r6334 r6881  
    1313    private boolean debug = false;
    1414
     15    /**
     16     * Setup test.
     17     */
    1518    @BeforeClass
    1619    public static void setUp() {
Note: See TracChangeset for help on using the changeset viewer.