Changeset 18373 in josm for trunk/test/unit/org
- Timestamp:
- 2022-02-09T18:48:09+01:00 (3 years 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/TemplatedWMSTileSourceTest.java
r18372 r18373 235 235 testImageryWMS.setId("TemplatedWMSTileSourceTest#testApiKeyInvalid"); 236 236 Projection projection = Projections.getProjectionByCode("EPSG:4326"); 237 IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> new TemplatedWMSTileSource(testImageryWMS, projection)); 237 IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, 238 () -> new TemplatedWMSTileSource(testImageryWMS, projection)); 238 239 assertEquals(tr("Could not retrieve API key for imagery with id={0}. Cannot add layer.", testImageryWMS.getId()), 239 240 exception.getMessage()); -
trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
r18372 r18373 474 474 testImageryWMTS.setId("TemplatedWMSTileSourceTest#testApiKeyInvalid"); 475 475 org.openstreetmap.josm.data.projection.Projection projection = Projections.getProjectionByCode("EPSG:4326"); 476 IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> new WMTSTileSource(testImageryWMTS, projection)); 476 IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, 477 () -> new WMTSTileSource(testImageryWMTS, projection)); 477 478 assertEquals(tr("Could not retrieve API key for imagery with id={0}. Cannot add layer.", testImageryWMTS.getId()), 478 479 exception.getMessage());
Note:
See TracChangeset
for help on using the changeset viewer.