Ignore:
Timestamp:
2016-08-07T17:39:42+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S3578 - Test methods should comply with a naming convention

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

Legend:

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

    r9498 r10758  
    1919     */
    2020    @Test
    21     public void latLon2Cart2LatLon() {
     21    public void testLatLon2Cart2LatLon() {
    2222        Random r = new Random(System.currentTimeMillis());
    2323        double maxErrLat = 0, maxErrLon = 0;
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java

    r10222 r10758  
    278278
    279279    @Test
    280     public void test() throws IOException {
     280    public void testProjections() throws IOException {
    281281        StringBuilder fail = new StringBuilder();
    282282        Set<String> allCodes = new HashSet<>(Projections.getAllProjectionCodes());
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java

    r10065 r10758  
    164164     */
    165165    @Test
    166     public void regressionTest() throws IOException {
     166    public void testNonRegression() throws IOException {
    167167        List<TestData> allData = readData();
    168168        Set<String> dataCodes = new HashSet<>();
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionTest.java

    r9950 r10758  
    2424
    2525    @Test
    26     public void projections() {
     26    public void testProjections() {
    2727        error = false;
    2828        text = "";
     
    104104
    105105    @Test
    106     public void projs() {
     106    public void testProjs() {
    107107        error2 = false;
    108108        text2 = "";
  • trunk/test/unit/org/openstreetmap/josm/data/projection/SwissGridTest.java

    r10378 r10758  
    1313
    1414public class SwissGridTest {
    15     public static final String SWISS_EPSG_CODE = "EPSG:21781";
     15    private static final String SWISS_EPSG_CODE = "EPSG:21781";
    1616    private boolean debug = false;
    1717
     
    5656    }
    5757
    58     public static final double EPSILON_APPROX = 1.5;
    59     public static final double EPSILON_ACCURATE = 0.05;
    60 
    61     public void projReferenceTest(final double epsilon) {
     58    private static final double EPSILON_APPROX = 1.5;
     59    private static final double EPSILON_ACCURATE = 0.05;
     60
     61    private void projReferenceTest(final double epsilon) {
    6262        Projection swiss = Projections.getProjectionByCode("EPSG:21781"); // Swiss grid
    6363        StringBuilder errs = new StringBuilder();
     
    7272
    7373    @Test
    74     public void projReferenceTestApprox() {
     74    public void testProjReferenceTestApprox() {
    7575        projReferenceTest(EPSILON_APPROX);
    7676    }
     
    7878    @Test
    7979    @Ignore("high accuracy of epsilon=" + EPSILON_ACCURATE + " is not met")
    80     public void projReferenceTestAccurate() {
     80    public void testProjReferenceTestAccurate() {
    8181        // TODO make this test pass
    8282        projReferenceTest(EPSILON_ACCURATE);
     
    8484
    8585    @Test
    86     public void a_latlon2eastNorth_test() {
     86    public void testAlatlon2eastNorth() {
    8787        LatLon ll = new LatLon(46.518, 6.567);
    8888        EastNorth en = Main.getProjection().latlon2eastNorth(ll);
     
    127127
    128128    @Test
    129     public void b_eastNorth2latlon_test() {
     129    public void testBeastNorth2latlon() {
    130130        EastNorth en = new EastNorth(533111.69, 152227.85);
    131131        LatLon ll = Main.getProjection().eastNorth2latlon(en);
     
    173173     */
    174174    @Test
    175     public void c_sendandreturn_test() {
     175    public void testCsendandreturn() {
    176176        EastNorth en = new EastNorth(533111.69, 152227.85);
    177177        LatLon ll = Main.getProjection().eastNorth2latlon(en);
Note: See TracChangeset for help on using the changeset viewer.