Changeset 8855 in josm for trunk/test


Ignore:
Timestamp:
2015-10-10T21:01:42+02:00 (4 years ago)
Author:
Don-vip
Message:

sonar - Unused private method should be removed
sonar - Unused protected methods should be removed
sonar - Sections of code should not be "commented out"
sonar - Empty statements should be removed
sonar - squid:S1172 - Unused method parameters should be removed
sonar - squid:S1481 - Unused local variables should be removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java

    r8836 r8855  
    4949        Main.setProjection(Projections.getProjectionByCode("EPSG:3857"));
    5050        WMTSTileSource testSource = new WMTSTileSource(testImageryPSEUDO_MERCATOR);
    51         testSource.initProjection();
     51        testSource.initProjection(Main.getProjection());
    5252
    5353        verifyMercatorTile(testSource, 0, 0, 1);
     
    8080        Main.setProjection(Projections.getProjectionByCode("EPSG:31370"));
    8181        WMTSTileSource testSource = new WMTSTileSource(testImageryWALLONIE);
    82         testSource.initProjection();
     82        testSource.initProjection(Main.getProjection());
    8383
    8484        assertEquals("http://geoservices.wallonie.be/arcgis/rest/services/DONNEES_BASE/FOND_PLAN_ANNOTATIONS_2012_RW_NB/"
     
    9999        Main.setProjection(Projections.getProjectionByCode("EPSG:31370"));
    100100        WMTSTileSource testSource = new WMTSTileSource(getImagery("test/data/wmts/WMTSCapabilities-Wallonie-nomatrixdimension.xml"));
    101         testSource.initProjection();
     101        testSource.initProjection(Main.getProjection());
    102102
    103103        Bounds wallonieBounds = new Bounds(
     
    123123        Main.setProjection(Projections.getProjectionByCode("EPSG:3857"));
    124124        WMTSTileSource testSource = new WMTSTileSource(testImageryWIEN);
    125         testSource.initProjection();
     125        testSource.initProjection(Main.getProjection());
    126126        int zoomOffset = 9;
    127127
     
    165165        Main.setProjection(Projections.getProjectionByCode("EPSG:4326"));
    166166        WMTSTileSource testSource = new WMTSTileSource(testImageryTOPO_PL);
    167         testSource.initProjection();
     167        testSource.initProjection(Main.getProjection());
    168168        verifyTile(new LatLon(56, 12), testSource, 0, 0, 1);
    169169        verifyTile(new LatLon(56, 12), testSource, 0, 0, 2);
     
    187187        Main.setProjection(Projections.getProjectionByCode("EPSG:4326"));
    188188        WMTSTileSource testSource = new WMTSTileSource(testImageryORTO_PL);
    189         testSource.initProjection();
     189        testSource.initProjection(Main.getProjection());
    190190        verifyTile(new LatLon(53.5993712684958, 19.560669777688176), testSource, 12412, 3941, 14);
    191191        verifyTile(new LatLon(49.783096954497786, 22.79034127751704), testSource, 17714, 10206, 14);
     
    196196        Main.setProjection(Projections.getProjectionByCode("EPSG:2180"));
    197197        WMTSTileSource testSource = new WMTSTileSource(testImageryORTO_PL);
    198         testSource.initProjection();
     198        testSource.initProjection(Main.getProjection());
    199199
    200200        verifyTile(new LatLon(53.59940948387726, 19.560544913270064), testSource, 6453, 3140, 14);
     
    207207        Main.setProjection(Projections.getProjectionByCode("EPSG:3857"));
    208208        WMTSTileSource testSource = new WMTSTileSource(testImageryOntario);
    209         testSource.initProjection();
     209        testSource.initProjection(Main.getProjection());
    210210        verifyTile(new LatLon(45.4105023, -75.7153702), testSource, 303751, 375502, 12);
    211211        verifyTile(new LatLon(45.4601306, -75.7617187), testSource, 1186, 1466, 4);
Note: See TracChangeset for help on using the changeset viewer.