Changeset 2417 in josm for trunk/test/unit/org/openstreetmap/josm
- Timestamp:
- 2009-11-09T01:03:08+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/visitor/MergeVisitorTest.java
r2396 r2417 553 553 their.addPrimitive(n5); 554 554 555 their.addPrimitive(n5);556 557 555 Node n4 = new Node(new LatLon(2,2)); 558 556 n4.setOsmId(2,2); … … 586 584 * their way has a higher version and different nodes. My way is modified. 587 585 * 588 * => merge itonto my way not possbile,conflict586 * => merge onto my way not possible, create a conflict 589 587 * 590 588 */ … … 621 619 Node n5 = new Node(new LatLon(1,1)); 622 620 n5.setOsmId(4,1); 623 their.addPrimitive(n5);624 625 621 their.addPrimitive(n5); 626 622 … … 788 784 theirWay.addNode(n3); 789 785 theirWay.addNode(n4); 790 theirWay.setUser(User.createOsmUser(1111, "their")); 786 User user = User.createOsmUser(1111, "their"); 787 theirWay.setUser(user); 791 788 theirWay.setTimestamp(new Date()); 792 789 their.addPrimitive(theirWay); … … 797 794 assertEquals(0,visitor.getConflicts().size()); 798 795 assertEquals("their", myWay.getUser().getName()); 799 assertEquals(1111, myWay.getUser().getId());800 796 assertEquals(1111, myWay.getUser().getId()); 801 797 assertEquals(theirWay.getTimestamp(), myWay.getTimestamp());
Note:
See TracChangeset
for help on using the changeset viewer.