Ignore:
Timestamp:
2016-10-26T14:02:13+02:00 (7 years ago)
Author:
simon04
Message:

fix #13828 - Fix IAE when adding WMS layer with invalid URL

The fix involves checking the URL when constructing WMSLayer instead when calling getTileSource

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/WMSLayerTest.java

    r10436 r11168  
    3838        }
    3939    }
     40
     41    /**
     42     * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/13828">Bug #13828</a>.
     43     */
     44    @Test(expected = IllegalArgumentException.class)
     45    public void testTicket13828() {
     46        new WMSLayer(new ImageryInfo("TMS", "http://203.159.29.217/try2/{z}/{x}/{y}.png"));
     47    }
    4048}
Note: See TracChangeset for help on using the changeset viewer.