Skip to content

Commit

Permalink
checkstyle: LineLength > 149 in files from r18372
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@18373 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
taylor.smock committed Feb 9, 2022
1 parent 4b9b9f3 commit bfe9a85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ void testApiKeyInvalid() {
+ "MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE", "wms", null, null);
testImageryWMS.setId("TemplatedWMSTileSourceTest#testApiKeyInvalid");
Projection projection = Projections.getProjectionByCode("EPSG:4326");
IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> new TemplatedWMSTileSource(testImageryWMS, projection));
IllegalArgumentException exception = assertThrows(IllegalArgumentException.class,
() -> new TemplatedWMSTileSource(testImageryWMS, projection));
assertEquals(tr("Could not retrieve API key for imagery with id={0}. Cannot add layer.", testImageryWMS.getId()),
exception.getMessage());
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,8 @@ void testApiKeyInvalid() {
assertTrue(testImageryWMTS.getUrl().contains("{apikey}"));
testImageryWMTS.setId("TemplatedWMSTileSourceTest#testApiKeyInvalid");
org.openstreetmap.josm.data.projection.Projection projection = Projections.getProjectionByCode("EPSG:4326");
IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> new WMTSTileSource(testImageryWMTS, projection));
IllegalArgumentException exception = assertThrows(IllegalArgumentException.class,
() -> new WMTSTileSource(testImageryWMTS, projection));
assertEquals(tr("Could not retrieve API key for imagery with id={0}. Cannot add layer.", testImageryWMTS.getId()),
exception.getMessage());
} finally {
Expand Down

0 comments on commit bfe9a85

Please sign in to comment.