Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/data/osm/history
- Timestamp:
- 2020-10-28T20:41:00+01:00 (4 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/osm/history
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/history/HistoryNodeTest.java
r12663 r17275 2 2 package org.openstreetmap.josm.data.osm.history; 3 3 4 import static org.junit. Assert.assertEquals;5 import static org.junit. Assert.assertTrue;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertTrue; 6 6 7 7 import java.util.Date; … … 9 9 import java.util.Map; 10 10 11 import org.junit. Rule;12 import org.junit.Test; 11 import org.junit.jupiter.api.extension.RegisterExtension; 12 import org.junit.jupiter.api.Test; 13 13 import org.openstreetmap.josm.data.coor.LatLon; 14 14 import org.openstreetmap.josm.data.osm.DefaultNameFormatter; … … 23 23 * Unit tests for class {@link HistoryNode}. 24 24 */ 25 publicclass HistoryNodeTest {25 class HistoryNodeTest { 26 26 27 27 /** 28 28 * Setup test. 29 29 */ 30 @R ule30 @RegisterExtension 31 31 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 32 32 public JOSMTestRules test = new JOSMTestRules(); … … 48 48 */ 49 49 @Test 50 publicvoid testHistoryNode() {50 void testHistoryNode() { 51 51 Date d = new Date(); 52 52 HistoryNode node = create(d); … … 65 65 */ 66 66 @Test 67 publicvoid testGetType() {67 void testGetType() { 68 68 assertEquals(OsmPrimitiveType.NODE, create(new Date()).getType()); 69 69 } … … 73 73 */ 74 74 @Test 75 publicvoid testGetCoords() {75 void testGetCoords() { 76 76 Node n = new Node(new LatLon(45, 0)); 77 77 n.setOsmId(1, 2); … … 85 85 */ 86 86 @Test 87 publicvoid testGetDisplayName() {87 void testGetDisplayName() { 88 88 HistoryNode node = create(new Date()); 89 89 HistoryNameFormatter hnf = DefaultNameFormatter.getInstance(); -
trunk/test/unit/org/openstreetmap/josm/data/osm/history/HistoryRelationTest.java
r12663 r17275 2 2 package org.openstreetmap.josm.data.osm.history; 3 3 4 import static org.junit. Assert.assertEquals;5 import static org.junit. Assert.assertTrue;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertTrue; 6 6 7 7 import java.util.Date; … … 9 9 import java.util.Map; 10 10 11 import org.junit. Rule;12 import org.junit.Test; 11 import org.junit.jupiter.api.extension.RegisterExtension; 12 import org.junit.jupiter.api.Test; 13 13 import org.openstreetmap.josm.data.osm.DefaultNameFormatter; 14 14 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; … … 22 22 * Unit tests for class {@link HistoryRelation}. 23 23 */ 24 publicclass HistoryRelationTest {24 class HistoryRelationTest { 25 25 26 26 /** 27 27 * Setup test. 28 28 */ 29 @R ule29 @RegisterExtension 30 30 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 31 31 public JOSMTestRules test = new JOSMTestRules(); … … 46 46 */ 47 47 @Test 48 publicvoid testHistoryRelation() {48 void testHistoryRelation() { 49 49 Date d = new Date(); 50 50 HistoryRelation rel = create(d); … … 63 63 */ 64 64 @Test 65 publicvoid testGetType() {65 void testGetType() { 66 66 assertEquals(OsmPrimitiveType.RELATION, create(new Date()).getType()); 67 67 } … … 71 71 */ 72 72 @Test 73 publicvoid testGetDisplayName() {73 void testGetDisplayName() { 74 74 HistoryNameFormatter hnf = DefaultNameFormatter.getInstance(); 75 75 HistoryRelation rel0 = create(new Date()); // 0 member -
trunk/test/unit/org/openstreetmap/josm/data/osm/history/HistoryWayTest.java
r16445 r17275 2 2 package org.openstreetmap.josm.data.osm.history; 3 3 4 import static org.junit. Assert.assertEquals;5 import static org.junit. Assert.assertTrue;6 import static org.junit. Assert.fail;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertTrue; 6 import static org.junit.jupiter.api.Assertions.fail; 7 7 8 8 import java.util.Date; … … 11 11 import java.util.Map; 12 12 13 import org.junit. Rule;14 import org.junit.Test; 13 import org.junit.jupiter.api.extension.RegisterExtension; 14 import org.junit.jupiter.api.Test; 15 15 import org.openstreetmap.josm.data.osm.DefaultNameFormatter; 16 16 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; … … 24 24 * Unit tests for class {@link HistoryWay}. 25 25 */ 26 publicclass HistoryWayTest {26 class HistoryWayTest { 27 27 28 28 /** 29 29 * Setup test. 30 30 */ 31 @R ule31 @RegisterExtension 32 32 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 33 33 public JOSMTestRules test = new JOSMTestRules(); … … 48 48 */ 49 49 @Test 50 publicvoid testHistoryWay() {50 void testHistoryWay() { 51 51 Date d = new Date(); 52 52 HistoryWay way = create(d); … … 67 67 */ 68 68 @Test 69 publicvoid testGetType() {69 void testGetType() { 70 70 assertEquals(OsmPrimitiveType.WAY, create(new Date()).getType()); 71 71 } 72 72 73 73 @Test 74 publicvoid testNodeManipulation() {74 void testNodeManipulation() { 75 75 HistoryWay way = create(new Date()); 76 76 … … 92 92 93 93 @Test 94 publicvoid testIterating() {94 void testIterating() { 95 95 HistoryWay way = create(new Date()); 96 96 … … 108 108 */ 109 109 @Test 110 publicvoid testGetDisplayName() {110 void testGetDisplayName() { 111 111 HistoryNameFormatter hnf = DefaultNameFormatter.getInstance(); 112 112 HistoryWay way0 = create(new Date()); // no node
Note:
See TracChangeset
for help on using the changeset viewer.