Index: trunk/test/unit/org/openstreetmap/josm/data/imagery/TemplatedWMSTileSourceTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/imagery/TemplatedWMSTileSourceTest.java	(revision 18372)
+++ trunk/test/unit/org/openstreetmap/josm/data/imagery/TemplatedWMSTileSourceTest.java	(revision 18373)
@@ -235,5 +235,6 @@
             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());
Index: trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java	(revision 18372)
+++ trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java	(revision 18373)
@@ -474,5 +474,6 @@
             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());
