Ignore:
Timestamp:
2018-08-07T00:24:36+02:00 (6 years ago)
Author:
Don-vip
Message:

see #8765, fix #11086 - Support notes in osmChange (.osc) files created by OsmAnd

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
1 added
2 edited

Legend:

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

    r12636 r14101  
    55import static org.junit.Assert.assertTrue;
    66
    7 import java.util.Collections;
    8 
    97import org.junit.Rule;
    108import org.junit.Test;
    11 import org.openstreetmap.josm.data.notes.Note;
    129import org.openstreetmap.josm.data.osm.DataSet;
    1310import org.openstreetmap.josm.data.osm.NoteData;
     
    3936        try {
    4037            MainApplication.getLayerManager().addLayer(layer);
    41             AddNoteAction mapMode = new AddNoteAction(new NoteData(Collections.<Note>emptyList()));
     38            AddNoteAction mapMode = new AddNoteAction(new NoteData());
    4239            MapFrame map = MainApplication.getMap();
    4340            MapMode oldMapMode = map.mapMode;
  • trunk/test/unit/org/openstreetmap/josm/data/osm/NoteDataTest.java

    r9666 r14101  
    2020    @Test
    2121    public void testNoteData() {
    22         NoteData empty = new NoteData(null);
     22        NoteData empty = new NoteData();
    2323        assertEquals(0, empty.getNotes().size());
    2424        NoteData notEmpty = new NoteData(Arrays.asList(new Note(LatLon.ZERO)));
Note: See TracChangeset for help on using the changeset viewer.