Ignore:
Timestamp:
2022-02-15T20:16:22+01:00 (3 years ago)
Author:
taylor.smock
Message:

Imagery Tests: Update expected error messages

see r18380

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  
    237237            IllegalArgumentException exception = assertThrows(IllegalArgumentException.class,
    238238                            () -> 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()),
    240242                    exception.getMessage());
    241243        } finally {
  • trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java

    r18373 r18381  
    472472            testImageryWMTS.setUrl(testImageryWMTS.getUrl().replace(TestUtils.getTestDataRoot(), "{apikey}"));
    473473            assertTrue(testImageryWMTS.getUrl().contains("{apikey}"));
    474             testImageryWMTS.setId("TemplatedWMSTileSourceTest#testApiKeyInvalid");
     474            testImageryWMTS.setId("WMTSTileSourceTest#testApiKeyInvalid");
    475475            org.openstreetmap.josm.data.projection.Projection projection = Projections.getProjectionByCode("EPSG:4326");
    476476            IllegalArgumentException exception = assertThrows(IllegalArgumentException.class,
    477477                            () -> 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()),
    479481                    exception.getMessage());
    480482        } finally {
Note: See TracChangeset for help on using the changeset viewer.