Changeset 1951 in josm for trunk/test/functional/org/openstreetmap/josm/gui/conflict/relation
- Timestamp:
- 2009-08-10T20:36:40+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/gui/conflict/relation/RelationMemberMergerTest.java
r1707 r1951 10 10 import org.openstreetmap.josm.data.osm.RelationMember; 11 11 import org.openstreetmap.josm.data.osm.Way; 12 import org.openstreetmap.josm.gui.conflict.nodes.NodeListMerger;13 import org.openstreetmap.josm.gui.conflict.nodes.NodeListMergerTest;14 12 15 13 public class RelationMemberMergerTest extends JFrame { 16 14 17 15 private RelationMemberMerger merger; 18 16 19 17 protected void populate() { 20 18 Relation r1 = new Relation(); 21 r1. members.add(new RelationMember("role1", new Node(1)));22 r1. members.add(new RelationMember("role2", new Way(2)));23 r1. members.add(new RelationMember("role3", new Relation(3)));19 r1.addMember(new RelationMember("role1", new Node(1))); 20 r1.addMember(new RelationMember("role2", new Way(2))); 21 r1.addMember(new RelationMember("role3", new Relation(3))); 24 22 25 23 26 24 Relation r2 = new Relation(); 27 r2. members.add(new RelationMember("role1", new Node(1)));28 r2. members.add(new RelationMember("role2", new Way(2)));29 r2. members.add(new RelationMember("role3", new Relation(3)));30 25 r2.addMember(new RelationMember("role1", new Node(1))); 26 r2.addMember(new RelationMember("role2", new Way(2))); 27 r2.addMember(new RelationMember("role3", new Relation(3))); 28 31 29 merger.populate(r1, r2); 32 30 33 31 } 34 32 35 33 protected void build() { 36 34 merger = new RelationMemberMerger(); … … 38 36 getContentPane().add(merger, BorderLayout.CENTER); 39 37 } 40 38 41 39 public RelationMemberMergerTest() { 42 40 build(); 43 41 populate(); 44 42 } 45 43 46 44 static public void main(String args[]) { 47 45 RelationMemberMergerTest test = new RelationMemberMergerTest();
Note:
See TracChangeset
for help on using the changeset viewer.