Changeset 18992 in josm for trunk/test
- Timestamp:
- 2024-02-22T15:49:01+01:00 (9 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
r18870 r18992 75 75 "<id>OSM_Inspector-Geometry</id>\n" + 76 76 "<type>wms_endpoint</type>\n" + 77 "<category>qa</category>\n" + 77 78 "<url><![CDATA[" + tileServer.url("/capabilities") + "]]></url>\n" + 78 79 "<icon>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAAB5UlEQVQ4y4WTwWsTURDG" + … … 125 126 " <id>geovekst-nib-historic</id>\n" + 126 127 " <type>wms_endpoint</type>\n" + 128 " <category>photo</category>\n" + 127 129 " <country-code>NO</country-code>\n" + 128 130 " <description lang=\"en\">Historic Norwegian orthophotos and maps, courtesy of Geovekst and Norkart.</description>\n" + -
trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
r18766 r18992 18 18 import java.nio.file.Paths; 19 19 import java.util.ArrayList; 20 import java.util.Arrays;21 20 import java.util.Collections; 22 21 import java.util.List; 23 22 import java.util.concurrent.TimeUnit; 24 23 25 import com.github.tomakehurst.wiremock.WireMockServer;26 import com.github.tomakehurst.wiremock.client.WireMock;27 24 import org.apache.commons.io.FileUtils; 28 25 import org.junit.jupiter.api.Disabled; … … 48 45 import org.openstreetmap.josm.tools.ReflectionUtils; 49 46 47 import com.github.tomakehurst.wiremock.WireMockServer; 48 import com.github.tomakehurst.wiremock.client.WireMock; 49 50 50 /** 51 51 * Unit tests for class {@link WMTSTileSource}. … … 276 276 ProjectionRegistry.setProjection(Projections.getProjectionByCode("EPSG:3857")); 277 277 ImageryInfo ontario = getImagery(TestUtils.getTestDataRoot() + "wmts/WMTSCapabilities-Ontario.xml"); 278 ontario.setDefaultLayers(Arrays.asList(new DefaultLayer[] { 279 new DefaultLayer(ImageryType.WMTS, "Basemap_Imagery_2014", null, "default028mm") 280 })); 278 ontario.setDefaultLayers(Collections.singletonList(new DefaultLayer(ImageryType.WMTS, "Basemap_Imagery_2014", null, "default028mm"))); 281 279 WMTSTileSource testSource = new WMTSTileSource(ontario); 282 280 testSource.initProjection(ProjectionRegistry.getProjection()); … … 293 291 ProjectionRegistry.setProjection(Projections.getProjectionByCode("EPSG:3857")); 294 292 ImageryInfo ontario = getImagery(TestUtils.getTestDataRoot() + "wmts/WMTSCapabilities-Ontario.xml"); 295 ontario.setDefaultLayers( Arrays.asList(new DefaultLayer[] {293 ontario.setDefaultLayers(Collections.singletonList( 296 294 new DefaultLayer(ImageryType.WMTS, "Basemap_Imagery_2014", null, "GoogleMapsCompatible") 297 }));295 )); 298 296 WMTSTileSource testSource = new WMTSTileSource(ontario); 299 297 testSource.initProjection(ProjectionRegistry.getProjection()); … … 393 391 "<id>landsat</id>\n" + 394 392 "<type>wmts</type>\n" + 393 "<category>photo</category>\n" + 395 394 "<url><![CDATA[" + tileServer.url("/getcapabilities.xml") + "]]></url>\n" + 396 395 "<default-layers>" +
Note:
See TracChangeset
for help on using the changeset viewer.