Ignore:
Timestamp:
2018-05-02T22:48:35+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16248 - fix parsing of XML namespace in WMS capabilities (patch by Bartosz Firyn, modified)

File:
1 edited

Legend:

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

    r13274 r13699  
    5656        }
    5757    }
     58
     59    /**
     60     * Non-regression test for bug #16248.
     61     * @throws IOException if any I/O error occurs
     62     * @throws WMSGetCapabilitiesException never
     63     */
     64    @Test
     65    public void testTicket16248() throws IOException, WMSGetCapabilitiesException {
     66        try (InputStream is = TestUtils.getRegressionDataStream(16248, "capabilities.xml")) {
     67            WMSImagery wms = new WMSImagery();
     68            wms.parseCapabilities(null, is);
     69            assertEquals("http://wms.hgis.cartomatic.pl/topo/3857/m25k", wms.getServiceUrl().toExternalForm());
     70        }
     71    }
    5872}
Note: See TracChangeset for help on using the changeset viewer.