Changeset 36064 in osm for applications/editors/josm/plugins/o5m
- Timestamp:
- 2023-03-21T14:49:10+01:00 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/o5m/test/unit/org/openstreetmap/josm/plugins/o5m/io/O5mImporterTest.java
r34837 r36064 2 2 package org.openstreetmap.josm.plugins.o5m.io; 3 3 4 import static org.junit. Assert.assertEquals;5 import static org.junit. Assert.assertNotNull;6 import static org.junit. Assert.assertNull;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.assertNull; 7 7 8 8 import java.io.IOException; 9 9 10 import org.junit. Rule;11 import org.junit. Test;10 import org.junit.jupiter.api.Assertions; 11 import org.junit.jupiter.api.Test; 12 12 import org.openstreetmap.josm.TestUtils; 13 13 import org.openstreetmap.josm.data.osm.DataSet; … … 16 16 import org.openstreetmap.josm.data.osm.User; 17 17 import org.openstreetmap.josm.io.IllegalDataException; 18 import org.openstreetmap.josm.testutils. JOSMTestRules;18 import org.openstreetmap.josm.testutils.annotations.BasicPreferences; 19 19 20 20 /** 21 21 * Unit tests for {@link O5mImporter}. 22 22 */ 23 public class O5mImporterTest { 24 25 /** 26 * Setup test. 27 */ 28 @Rule 29 public JOSMTestRules rules = new JOSMTestRules().preferences(); 30 23 @BasicPreferences 24 class O5mImporterTest { 31 25 private static void checkUserNull(OsmPrimitive osm, boolean hasToBeNull) { 32 26 User usr = osm.getUser(); 33 27 if (hasToBeNull) { 34 assertNull( osm + " -> " + usr,usr);28 assertNull(usr, osm + " -> " + usr); 35 29 } else { 36 assertNotNull( osm + " -> " + usr,usr);30 assertNotNull(usr, osm + " -> " + usr); 37 31 } 38 32 } … … 56 50 */ 57 51 @Test 58 publicvoid testParseDataSet() throws Exception {52 void testParseDataSet() throws Exception { 59 53 doTestMonaco(TestUtils.getTestDataRoot() + "/monaco-latest.o5m", false); 60 54 } … … 66 60 */ 67 61 @Test 68 publicvoid testParseDataSetDropVersion() throws Exception {62 void testParseDataSetDropVersion() throws Exception { 69 63 doTestMonaco(TestUtils.getTestDataRoot() + "/monaco-drop-version.o5m", true); 70 64 }
Note:
See TracChangeset
for help on using the changeset viewer.