Changeset 11181 in josm for trunk/test/unit


Ignore:
Timestamp:
2016-10-28T11:50:35+02:00 (3 years ago)
Author:
simon04
Message:

see #13828 - Fix unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/actions/AddImageryLayerActionTest.java

    r10739 r11181  
    7171    public void testActionPerformedDisabled() {
    7272        assertTrue(Main.getLayerManager().getLayersOfType(TMSLayer.class).isEmpty());
    73         new AddImageryLayerAction(new ImageryInfo()).actionPerformed(null);
     73        try {
     74            new AddImageryLayerAction(new ImageryInfo()).actionPerformed(null);
     75        } catch (IllegalArgumentException expected) {
     76            assertEquals("Parameter 'info.url' must not be null", expected.getMessage());
     77        }
    7478        assertTrue(Main.getLayerManager().getLayersOfType(TMSLayer.class).isEmpty());
    7579    }
Note: See TracChangeset for help on using the changeset viewer.