Ignore:
Timestamp:
2018-12-03T19:49:06+01:00 (6 years ago)
Author:
Don-vip
Message:

see #17064 - add non regression test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionManagerTest.java

    r13079 r14503  
    55import org.junit.Test;
    66import org.openstreetmap.josm.TestUtils;
     7import org.openstreetmap.josm.data.osm.DataSet;
     8import org.openstreetmap.josm.gui.MainApplication;
     9import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    710import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionManager.UserInputTag;
    811import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    2427
    2528    /**
     29     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/17064">#17064</a>.
     30     */
     31    @Test
     32    public void testTicket17064() {
     33        DataSet ds = new DataSet();
     34        OsmDataLayer layer = new OsmDataLayer(ds, "testTicket17064", null);
     35        MainApplication.getLayerManager().addLayer(layer);
     36        AutoCompletionManager.of(ds);
     37        MainApplication.getLayerManager().removeLayer(layer); // NPE in #17064
     38    }
     39
     40    /**
    2641     * Unit test of methods {@link UserInputTag#equals} and {@link UserInputTag#hashCode}.
    2742     */
Note: See TracChangeset for help on using the changeset viewer.