Changeset 13878 in josm for trunk/test


Ignore:
Timestamp:
2018-05-31T00:51:20+02:00 (14 months ago)
Author:
wiktorn
Message:

Fix identifying if getMapUrl contains query part.

See: #16330

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/imagery/WMSImageryTest.java

    r13870 r13878  
    9191                );
    9292        WMSImagery wms = new WMSImagery(tileServer.url("any"));
    93         assertEquals("http://wms.hgis.cartomatic.pl/topo/3857/m25k", wms.buildRootUrl());
     93        assertEquals("http://wms.hgis.cartomatic.pl/topo/3857/m25k?", wms.buildRootUrl());
    9494        assertEquals("wms.hgis.cartomatic.pl", wms.getLayers().get(0).getName());
    95         assertEquals("http://wms.hgis.cartomatic.pl/topo/3857/m25kFORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&"
     95        assertEquals("http://wms.hgis.cartomatic.pl/topo/3857/m25k?FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&"
    9696                + "LAYERS=wms.hgis.cartomatic.pl&STYLES=&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox}",
    9797                wms.buildGetMapUrl(wms.getLayers(), (List<String>) null, true));
Note: See TracChangeset for help on using the changeset viewer.