Changeset 19052 in josm


Ignore:
Timestamp:
2024-04-22T21:43:15+02:00 (7 months ago)
Author:
taylor.smock
Message:

Fix some wiremock tests -- wiremock no longer considers // to be a valid URI.

From history, it appears that this may have been a typo (any URL to //maps).

Location:
trunk/test/unit/org/openstreetmap/josm/data/imagery
Files:
2 edited

Legend:

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

    r18992 r19052  
    6868                );
    6969
    70         tileServer.stubFor(WireMock.get(WireMock.urlEqualTo("//maps")).willReturn(WireMock.aResponse().withBody(
     70        tileServer.stubFor(WireMock.get(WireMock.urlEqualTo("/other/maps")).willReturn(WireMock.aResponse().withBody(
    7171                "<?xml version='1.0' encoding='UTF-8'?>\n" +
    7272                "<imagery xmlns=\"http://josm.openstreetmap.de/maps-1.0\">\n" +
     
    9595                )));
    9696
    97         Config.getPref().putList("imagery.layers.sites", Collections.singletonList(tileServer.url("//maps")));
     97        Config.getPref().putList("imagery.layers.sites", Collections.singletonList(tileServer.url("/other/maps")));
    9898        ImageryLayerInfo.instance.loadDefaults(true, null, false);
    9999        assertEquals(1, ImageryLayerInfo.instance.getDefaultLayers().size());
     
    118118                );
    119119
    120         tileServer.stubFor(WireMock.get(WireMock.urlEqualTo("//maps")).willReturn(WireMock.aResponse().withBody(
     120        tileServer.stubFor(WireMock.get(WireMock.urlEqualTo("/other/maps")).willReturn(WireMock.aResponse().withBody(
    121121                "<?xml version='1.0' encoding='UTF-8'?>\n" +
    122122                "<imagery xmlns=\"http://josm.openstreetmap.de/maps-1.0\">\n" +
     
    141141                )));
    142142
    143         Config.getPref().putList("imagery.layers.sites", Collections.singletonList(tileServer.url("//maps")));
     143        Config.getPref().putList("imagery.layers.sites", Collections.singletonList(tileServer.url("/other/maps")));
    144144        ImageryLayerInfo.instance.loadDefaults(true, null, false);
    145145        ImageryInfo wmsImageryInfo = ImageryLayerInfo.instance.getDefaultLayers().get(0);
  • trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java

    r18992 r19052  
    382382
    383383        tileServer.stubFor(
    384                 WireMock.get("//maps")
     384                WireMock.get("/other/maps")
    385385                .willReturn(
    386386                        WireMock.aResponse().withBody(
     
    400400                )));
    401401
    402         Config.getPref().putList("imagery.layers.sites", Collections.singletonList(tileServer.url("//maps")));
     402        Config.getPref().putList("imagery.layers.sites", Collections.singletonList(tileServer.url("/other/maps")));
    403403        ImageryLayerInfo.instance.loadDefaults(true, null, false);
    404404
Note: See TracChangeset for help on using the changeset viewer.