Changeset 4603 in josm for trunk/test
- Timestamp:
- 2011-11-21T21:57:20+01:00 (13 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/osm/history
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/history/HistoryNodeTest.java
r2789 r4603 2 2 package org.openstreetmap.josm.data.osm.history; 3 3 4 5 import static org.junit.Assert.assertEquals; 4 6 5 7 import java.util.Date; … … 8 10 import org.openstreetmap.josm.data.coor.LatLon; 9 11 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 10 11 import static org.junit.Assert.*; 12 import org.openstreetmap.josm.data.osm.User; 12 13 13 14 public class HistoryNodeTest { … … 17 18 Date d = new Date(); 18 19 HistoryNode node = new HistoryNode( 19 1 ,20 2 ,20 1l, 21 2l, 21 22 true, 22 "testuser", 23 3, 24 4, 23 User.createOsmUser(3, "testuser"), 24 4l, 25 25 d, 26 26 new LatLon(0,0) 27 );27 ); 28 28 29 29 assertEquals(1, node.getId()); 30 30 assertEquals(2, node.getVersion()); 31 31 assertEquals(true, node.isVisible()); 32 assertEquals("testuser", node.getUser() );33 assertEquals(3, node.getU id());32 assertEquals("testuser", node.getUser().getName()); 33 assertEquals(3, node.getUser().getId()); 34 34 assertEquals(4, node.getChangesetId()); 35 35 assertEquals(d, node.getTimestamp()); … … 43 43 2, 44 44 true, 45 "testuser", 46 3, 45 User.createOsmUser(3, "testuser"), 47 46 4, 48 47 d, 49 48 new LatLon(0,0) 50 );49 ); 51 50 52 51 assertEquals(OsmPrimitiveType.NODE, node.getType()); -
trunk/test/unit/org/openstreetmap/josm/data/osm/history/HistoryWayTest.java
r2990 r4603 10 10 import org.junit.Test; 11 11 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 12 import org.openstreetmap.josm.data.osm.User; 12 13 13 14 public class HistoryWayTest { … … 20 21 2, 21 22 true, 22 "testuser", 23 3, 23 User.createOsmUser(3, "testuser"), 24 24 4, 25 25 d 26 );26 ); 27 27 28 28 assertEquals(1, way.getId()); 29 29 assertEquals(2, way.getVersion()); 30 30 assertEquals(true, way.isVisible()); 31 assertEquals("testuser", way.getUser() );32 assertEquals(3, way.getU id());31 assertEquals("testuser", way.getUser().getName()); 32 assertEquals(3, way.getUser().getId()); 33 33 assertEquals(4, way.getChangesetId()); 34 34 assertEquals(d, way.getTimestamp()); … … 44 44 2, 45 45 true, 46 "testuser", 47 3, 46 User.createOsmUser(3, "testuser"), 48 47 4, 49 48 d 50 );49 ); 51 50 52 51 assertEquals(OsmPrimitiveType.WAY, way.getType()); … … 60 59 2, 61 60 true, 62 "testuser", 63 3, 61 User.createOsmUser(3, "testuser"), 64 62 4, 65 63 d 66 );64 ); 67 65 68 66 way.addNode(1); … … 88 86 2, 89 87 true, 90 "testuser", 91 3, 88 User.createOsmUser(3, "testuser"), 92 89 4, 93 90 d 94 );91 ); 95 92 96 93 way.addNode(1);
Note:
See TracChangeset
for help on using the changeset viewer.