Changeset 10054 in josm for trunk/test/unit


Ignore:
Timestamp:
2016-03-27T03:55:36+02:00 (5 years ago)
Author:
Don-vip
Message:

fix unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/NoteImporterTest.java

    r10051 r10054  
    1010import org.openstreetmap.josm.Main;
    1111import org.openstreetmap.josm.TestUtils;
     12import org.openstreetmap.josm.gui.layer.Layer;
    1213
    1314/**
     
    2122    @Test
    2223    public void testTicket12531() {
     24        if (Main.map != null) {
     25            for (Layer l: Main.map.mapView.getAllLayers()) {
     26                Main.map.mapView.removeLayer(l);
     27            }
     28            Main.main.setMapFrame(null);
     29        }
    2330        assertNull(Main.map);
    2431        assertTrue(new NoteImporter().importDataHandleExceptions(
Note: See TracChangeset for help on using the changeset viewer.