Changeset 14503 in josm for trunk/test/unit
- Timestamp:
- 2018-12-03T19:49:06+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionManagerTest.java
r13079 r14503 5 5 import org.junit.Test; 6 6 import org.openstreetmap.josm.TestUtils; 7 import org.openstreetmap.josm.data.osm.DataSet; 8 import org.openstreetmap.josm.gui.MainApplication; 9 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 7 10 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionManager.UserInputTag; 8 11 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 24 27 25 28 /** 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 /** 26 41 * Unit test of methods {@link UserInputTag#equals} and {@link UserInputTag#hashCode}. 27 42 */
Note:
See TracChangeset
for help on using the changeset viewer.