Changeset 1910 in josm for trunk/test/functional
- Timestamp:
- 2009-08-05T08:19:02+02:00 (15 years ago)
- Location:
- trunk/test/functional/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/gui/conflict/nodes/NodeListMergerTest.java
r1707 r1910 17 17 Way w1 = new Way(); 18 18 Node n1; 19 w1. nodes.add(n1 = new Node(1));19 w1.addNode(n1 = new Node(1)); 20 20 for (int i=0; i < 20; i++) { 21 21 n1.put("key" + i, "value" + i); … … 26 26 } 27 27 n1.put("note", note); 28 w1. nodes.add(new Node(2));29 w1. nodes.add(new Node(3));28 w1.addNode(new Node(2)); 29 w1.addNode(new Node(3)); 30 30 31 31 Way w2 = new Way(); 32 w2. nodes.add(new Node(4));33 w2. nodes.add(new Node(5));34 w2. nodes.add(new Node(6));32 w2.addNode(new Node(4)); 33 w2.addNode(new Node(5)); 34 w2.addNode(new Node(6)); 35 35 36 36 nodeListMerger.populate(w1, w2); … … 41 41 Way w1 = new Way(); 42 42 for (int i = 0; i < 100; i++) { 43 w1. nodes.add(new Node(i));43 w1.addNode(new Node(i)); 44 44 } 45 45 46 46 Way w2 = new Way(); 47 47 for (int i = 1; i < 200; i+=2) { 48 w2. nodes.add(new Node(i));48 w2.addNode(new Node(i)); 49 49 } 50 50 nodeListMerger.populate(w1, w2); -
trunk/test/functional/org/openstreetmap/josm/gui/dialogs/ConflictResolutionDialogTest.java
r1707 r1910 10 10 11 11 private ConflictResolutionDialog dialog; 12 12 13 13 protected void build() { 14 14 setSize(100,100); 15 15 dialog = new ConflictResolutionDialog(this); 16 16 dialog.setSize(600,600); 17 18 17 18 19 19 } 20 20 protected void populate() { 21 21 Way w1 = new Way(1); 22 w1. nodes.add(new Node(10));23 w1. nodes.add(new Node(11));24 22 w1.addNode(new Node(10)); 23 w1.addNode(new Node(11)); 24 25 25 Way w2 = new Way(1); 26 w2. nodes.add(new Node(10));27 w2. nodes.add(new Node(11));28 26 w2.addNode(new Node(10)); 27 w2.addNode(new Node(11)); 28 29 29 dialog.getConflictResolver().populate(w1, w2); 30 30 } 31 31 32 32 public void showDialog() { 33 33 dialog.setVisible(true); 34 34 } 35 35 36 36 public ConflictResolutionDialogTest() { 37 37 build(); 38 38 } 39 39 40 40 static public void main(String args[]) { 41 41 ConflictResolutionDialogTest test = new ConflictResolutionDialogTest(); -
trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java
r1898 r1910 76 76 int idx = (start + j) % numNodes; 77 77 Node n = nodes.get(idx); 78 w. nodes.add(n);78 w.addNode(n); 79 79 } 80 80 w.put("name", "way-"+i); -
trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java
r1898 r1910 74 74 w.incomplete = false; 75 75 for (int j = 0; j < 10;j++) { 76 w. nodes.add(lookupNode(ds, i+j));76 w.addNode(lookupNode(ds, i+j)); 77 77 } 78 78 w.put("name", "way-"+i);
Note:
See TracChangeset
for help on using the changeset viewer.