Changeset 18381 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2022-02-15T20:16:22+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
r18373 r18381 237 237 IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, 238 238 () -> new TemplatedWMSTileSource(testImageryWMS, projection)); 239 assertEquals(tr("Could not retrieve API key for imagery with id={0}. Cannot add layer.", testImageryWMS.getId()), 239 assertEquals(tr("Could not retrieve API key for imagery with id={0}. Cannot add layer.\n" 240 + "API key for imagery with id=TemplatedWMSTileSourceTest#testApiKeyInvalid may not be available.", 241 testImageryWMS.getId()), 240 242 exception.getMessage()); 241 243 } finally { -
trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
r18373 r18381 472 472 testImageryWMTS.setUrl(testImageryWMTS.getUrl().replace(TestUtils.getTestDataRoot(), "{apikey}")); 473 473 assertTrue(testImageryWMTS.getUrl().contains("{apikey}")); 474 testImageryWMTS.setId(" TemplatedWMSTileSourceTest#testApiKeyInvalid");474 testImageryWMTS.setId("WMTSTileSourceTest#testApiKeyInvalid"); 475 475 org.openstreetmap.josm.data.projection.Projection projection = Projections.getProjectionByCode("EPSG:4326"); 476 476 IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, 477 477 () -> new WMTSTileSource(testImageryWMTS, projection)); 478 assertEquals(tr("Could not retrieve API key for imagery with id={0}. Cannot add layer.", testImageryWMTS.getId()), 478 assertEquals(tr("Could not retrieve API key for imagery with id={0}. Cannot add layer.\n" + 479 "API key for imagery with id=WMTSTileSourceTest#testApiKeyInvalid may not be available.", 480 testImageryWMTS.getId()), 479 481 exception.getMessage()); 480 482 } finally {
Note:
See TracChangeset
for help on using the changeset viewer.