Changeset 11261 in josm for trunk/test/unit


Ignore:
Timestamp:
2016-11-16T13:04:17+01:00 (3 years ago)
Author:
simon04
Message:

fix #13985 - Freezes when creating a layer named "Data Layer "

File:
1 edited

Legend:

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

    r11224 r11261  
    259259        assertEquals("Data Layer 148", layer2.getName());
    260260    }
     261
     262    @Test
     263    public void testLayerUnnumberedName() {
     264        final OsmDataLayer layer = new OsmDataLayer(new DataSet(), "Data Layer ", null);
     265        assertEquals("Data Layer ", layer.getName());
     266    }
     267
     268    /**
     269     * Non-regression test for ticket #13985
     270     */
     271    @Test
     272    public void testLayerNameDoesFinish() {
     273        final OsmDataLayer layer = new OsmDataLayer(new DataSet(), "Data Layer from GeoJSON: foo.geojson", null);
     274        assertEquals("Data Layer from GeoJSON: foo.geojson", layer.getName());
     275    }
    261276}
Note: See TracChangeset for help on using the changeset viewer.