Changeset 19052 in josm for trunk/test
- Timestamp:
- 2024-04-22T21:43:15+02:00 (8 months ago)
- 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 68 68 ); 69 69 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( 71 71 "<?xml version='1.0' encoding='UTF-8'?>\n" + 72 72 "<imagery xmlns=\"http://josm.openstreetmap.de/maps-1.0\">\n" + … … 95 95 ))); 96 96 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"))); 98 98 ImageryLayerInfo.instance.loadDefaults(true, null, false); 99 99 assertEquals(1, ImageryLayerInfo.instance.getDefaultLayers().size()); … … 118 118 ); 119 119 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( 121 121 "<?xml version='1.0' encoding='UTF-8'?>\n" + 122 122 "<imagery xmlns=\"http://josm.openstreetmap.de/maps-1.0\">\n" + … … 141 141 ))); 142 142 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"))); 144 144 ImageryLayerInfo.instance.loadDefaults(true, null, false); 145 145 ImageryInfo wmsImageryInfo = ImageryLayerInfo.instance.getDefaultLayers().get(0); -
trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
r18992 r19052 382 382 383 383 tileServer.stubFor( 384 WireMock.get("/ /maps")384 WireMock.get("/other/maps") 385 385 .willReturn( 386 386 WireMock.aResponse().withBody( … … 400 400 ))); 401 401 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"))); 403 403 ImageryLayerInfo.instance.loadDefaults(true, null, false); 404 404
Note:
See TracChangeset
for help on using the changeset viewer.