Changeset 16736 in josm for trunk


Ignore:
Timestamp:
2020-07-06T22:24:08+02:00 (4 years ago)
Author:
stoecker
Message:

see #19483 - fix tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/ImageryHandlerTest.java

    r16734 r16736  
    116116                "connectId%3D0123456789";
    117117        ImageryInfo imageryInfo = newHandler(url).buildImageryInfo();
    118         assertEquals(ImageryInfo.ImageryType.TMS, imageryInfo.getImageryType());
    119         assertEquals("https://services.digitalglobe.com/earthservice/tmsaccess/tms/1.0.0/DigitalGlobe:ImageryTileService" +
     118        assertEquals(ImageryInfo.ImageryType.WMS, imageryInfo.getImageryType());
     119        /* do not interpret the URL, take it as is and error later */
     120        assertEquals("tms[3,7]:https://services.digitalglobe.com/earthservice/tmsaccess/tms/1.0.0/DigitalGlobe:ImageryTileService" +
    120121                "@EPSG:3857@jpg/{z}/{x}/{-y}.jpg?connectId=0123456789", imageryInfo.getUrl());
    121         assertEquals("tms[3,7]:https://services.digitalglobe.com/earthservice/tmsaccess/tms/1.0.0/DigitalGlobe:ImageryTileService" +
    122                 "@EPSG:3857@jpg/{z}/{x}/{-y}.jpg?connectId=0123456789", imageryInfo.getExtendedUrl());
    123         assertEquals(3, imageryInfo.getMinZoom());
    124         assertEquals(7, imageryInfo.getMaxZoom());
    125122    }
    126123}
Note: See TracChangeset for help on using the changeset viewer.