source: josm/trunk/test/unit/org/openstreetmap/josm/data/osm/NoteDataTest.java@ 17360

Last change on this file since 17360 was 17275, checked in by Don-vip, 3 years ago

see #16567 - upgrade almost all tests to JUnit 5, except those depending on WiremockRule

See https://github.com/tomakehurst/wiremock/issues/684

File size: 715 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm;
3
4import static org.junit.jupiter.api.Assertions.assertEquals;
5
6import java.util.Arrays;
7
8import org.junit.jupiter.api.Test;
9import org.openstreetmap.josm.data.coor.LatLon;
10import org.openstreetmap.josm.data.notes.Note;
11
12/**
13 * Unit tests of the {@code NoteData} class.
14 */
15class NoteDataTest {
16
17 /**
18 * Unit test for {@link NoteData#NoteData}
19 */
20 @Test
21 void testNoteData() {
22 NoteData empty = new NoteData();
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.