Changeset 2292 in josm for trunk/test/unit/org
- Timestamp:
- 2009-10-15T22:24:12+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/visitor/MergeVisitorTest.java
r2252 r2292 382 382 n.setCoor(new LatLon(0,0)); 383 383 n.put("key1", "value1"); 384 n. user = myUser;384 n.setUser(myUser); 385 385 n.setTimestamp(cal.getTime()); 386 386 … … 395 395 Date timestamp = cal.getTime(); 396 396 n1.setTimestamp(timestamp); 397 n1. user = theirUser;397 n1.setUser(theirUser); 398 398 their.addPrimitive(n1); 399 399 … … 406 406 assertEquals("value1",n2.get("key1")); 407 407 assertEquals(true, n1.getTimestamp().equals(n2.getTimestamp())); 408 assertEquals(theirUser,n2. user);408 assertEquals(theirUser,n2.getUser()); 409 409 } 410 410 … … 740 740 theirWay.addNode(n3); 741 741 theirWay.addNode(n4); 742 theirWay. user = User.createOsmUser(1111, "their");742 theirWay.setUser(User.createOsmUser(1111, "their")); 743 743 theirWay.setTimestamp(new Date()); 744 744 their.addPrimitive(theirWay); … … 748 748 749 749 assertEquals(0,visitor.getConflicts().size()); 750 assertEquals("their", myWay. user.getName());751 assertEquals(1111, myWay. user.getId());752 assertEquals(1111, myWay. user.getId());750 assertEquals("their", myWay.getUser().getName()); 751 assertEquals(1111, myWay.getUser().getId()); 752 assertEquals(1111, myWay.getUser().getId()); 753 753 assertEquals(theirWay.getTimestamp(), myWay.getTimestamp()); 754 754 } … … 789 789 theirWay.addNode(n3); 790 790 theirWay.addNode(n4); 791 theirWay. user = User.createOsmUser(1111, "their");791 theirWay.setUser(User.createOsmUser(1111, "their")); 792 792 theirWay.setTimestamp(new Date()); 793 793 their.addPrimitive(theirWay); … … 797 797 798 798 assertEquals(0,visitor.getConflicts().size()); 799 assertEquals("their", myWay. user.getName());800 assertEquals(1111, myWay. user.getId());801 assertEquals(1111, myWay. user.getId());799 assertEquals("their", myWay.getUser().getName()); 800 assertEquals(1111, myWay.getUser().getId()); 801 assertEquals(1111, myWay.getUser().getId()); 802 802 assertEquals(theirWay.getTimestamp(), myWay.getTimestamp()); 803 803 } … … 844 844 theirWay.addNode(n4); 845 845 theirWay.addNode(n5); 846 theirWay. user = User.createOsmUser(1111, "their");846 theirWay.setUser(User.createOsmUser(1111, "their")); 847 847 theirWay.setTimestamp(new Date()); 848 848 their.addPrimitive(theirWay);
Note:
See TracChangeset
for help on using the changeset viewer.