Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/io/session/SessionReaderTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/session/SessionReaderTest.java
r15070 r17275 2 2 package org.openstreetmap.josm.io.session; 3 3 4 import static org.junit. Assert.assertEquals;5 import static org.junit. Assert.assertNotNull;6 import static org.junit. Assert.assertTrue;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertNotNull; 6 import static org.junit.jupiter.api.Assertions.assertTrue; 7 7 8 8 import java.io.ByteArrayInputStream; … … 13 13 import java.util.List; 14 14 15 import org.junit. Rule;16 import org.junit. Test;15 import org.junit.jupiter.api.extension.RegisterExtension; 16 import org.junit.jupiter.api.Test; 17 17 import org.openstreetmap.josm.TestUtils; 18 18 import org.openstreetmap.josm.data.coor.EastNorth; … … 33 33 * Unit tests for Session reading. 34 34 */ 35 publicclass SessionReaderTest {35 class SessionReaderTest { 36 36 37 37 /** 38 38 * Setup tests. 39 39 */ 40 @R ule40 @RegisterExtension 41 41 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 42 42 public JOSMTestRules test = new JOSMTestRules().projection(); … … 60 60 */ 61 61 @Test 62 publicvoid testReadEmpty() throws IOException, IllegalDataException {62 void testReadEmpty() throws IOException, IllegalDataException { 63 63 assertTrue(testRead("empty.jos").isEmpty()); 64 64 assertTrue(testRead("empty.joz").isEmpty()); … … 71 71 */ 72 72 @Test 73 publicvoid testReadOsm() throws IOException, IllegalDataException {73 void testReadOsm() throws IOException, IllegalDataException { 74 74 for (String file : new String[]{"osm.jos", "osm.joz"}) { 75 75 List<Layer> layers = testRead(file); … … 87 87 */ 88 88 @Test 89 publicvoid testReadGpx() throws IOException, IllegalDataException {89 void testReadGpx() throws IOException, IllegalDataException { 90 90 for (String file : new String[]{"gpx.jos", "gpx.joz", "nmea.jos"}) { 91 91 List<Layer> layers = testRead(file); … … 103 103 */ 104 104 @Test 105 publicvoid testReadGpxAndMarker() throws IOException, IllegalDataException {105 void testReadGpxAndMarker() throws IOException, IllegalDataException { 106 106 List<Layer> layers = testRead("gpx_markers.joz"); 107 107 assertEquals(layers.size(), 2); … … 127 127 */ 128 128 @Test 129 publicvoid testReadImage() throws IOException, IllegalDataException {129 void testReadImage() throws IOException, IllegalDataException { 130 130 final List<Layer> layers = testRead("bing.jos"); 131 131 assertEquals(layers.size(), 1); … … 144 144 */ 145 145 @Test 146 publicvoid testReadNotes() throws IOException, IllegalDataException {146 void testReadNotes() throws IOException, IllegalDataException { 147 147 if (MainApplication.isDisplayingMapView()) { 148 148 for (NoteLayer nl : MainApplication.getLayerManager().getLayersOfType(NoteLayer.class)) { … … 163 163 */ 164 164 @Test 165 publicvoid testTicket17701() throws Exception {165 void testTicket17701() throws Exception { 166 166 try (InputStream in = new ByteArrayInputStream(("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + 167 167 "<josm-session version=\"0.1\">\n" +
Note:
See TracChangeset
for help on using the changeset viewer.