Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.osm;
|
---|
3 |
|
---|
4 | import static org.junit.Assert.assertEquals;
|
---|
5 |
|
---|
6 | import java.util.Arrays;
|
---|
7 |
|
---|
8 | import org.junit.Test;
|
---|
9 | import org.openstreetmap.josm.data.coor.LatLon;
|
---|
10 | import org.openstreetmap.josm.data.notes.Note;
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * Unit tests of the {@code NoteData} class.
|
---|
14 | */
|
---|
15 | public class NoteDataTest {
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * Unit test for {@link NoteData#NoteData}
|
---|
19 | */
|
---|
20 | @Test
|
---|
21 | public void testNoteData() {
|
---|
22 | NoteData empty = new NoteData(null);
|
---|
23 | assertEquals(0, empty.getNotes().size());
|
---|
24 | NoteData notEmpty = new NoteData(Arrays.asList(new Note(LatLon.ZERO)));
|
---|
25 | assertEquals(1, notEmpty.getNotes().size());
|
---|
26 | }
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.