Changeset 2498 in josm for trunk/test/unit
- Timestamp:
- 2009-11-22T12:45:38+01:00 (15 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/osm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/APIDataSetTest.java
r2381 r2498 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.osm; 3 4 import static org.junit.Assert.assertEquals; 5 import static org.junit.Assert.fail; 3 6 4 7 import java.util.List; 5 8 6 9 import org.junit.Test; 7 import static org.junit.Assert.*;8 9 10 import org.openstreetmap.josm.actions.upload.CyclicUploadDependencyException; 10 11 import org.openstreetmap.josm.data.APIDataSet; … … 18 19 Relation r = new Relation(); 19 20 r.put("name", "r1"); 20 r.incomplete = false;21 21 DataSet ds = new DataSet(); 22 22 ds.addPrimitive(r); … … 39 39 Relation r1 = new Relation(); 40 40 r1.put("name", "r1"); 41 r1.incomplete = false;42 41 43 42 Relation r2 = new Relation(); 44 43 r2.put("name", "r2"); 45 r2.incomplete = false;46 44 47 45 r1.addMember(new RelationMember("", r2)); … … 69 67 Relation r1 = new Relation(); 70 68 r1.put("name", "r1"); 71 r1.incomplete = false;72 69 73 70 Relation r2 = new Relation(); 74 71 r2.put("name", "r2"); 75 r2.incomplete = false;76 72 77 73 Relation r3 = new Relation(); 78 74 r3.put("name", "r3"); 79 r3.incomplete = false;80 75 81 76 Relation r4 = new Relation(1); … … 116 111 Relation r1 = new Relation(); 117 112 r1.put("name", "r1"); 118 r1.incomplete = false;119 113 120 114 Relation r2 = new Relation(); 121 115 r2.put("name", "r2"); 122 r2.incomplete = false;123 116 124 117 Relation r3 = new Relation(); 125 118 r3.put("name", "r3"); 126 r3.incomplete = false;127 119 128 120 r1.addMember(new RelationMember("", r2)); … … 152 144 Relation r1 = new Relation(); 153 145 r1.put("name", "r1"); 154 r1.incomplete = false;155 146 156 147 Relation r2 = new Relation(); 157 148 r2.put("name", "r2"); 158 r2.incomplete = false;159 149 160 150 Relation r3 = new Relation(); 161 151 r3.put("name", "r3"); 162 r3.incomplete = false;163 152 164 153 r1.addMember(new RelationMember("", r2)); -
trunk/test/unit/org/openstreetmap/josm/data/osm/DataSetMergerTest.java
r2471 r2498 1001 1001 1002 1002 Way w3 = new Way(3); 1003 w3.incomplete = true;1004 1003 w3.setNodes(Arrays.asList(n1,n2)); 1005 1004 their.addPrimitive(w3); … … 1051 1050 // an incomplete way with two incomplete nodes 1052 1051 Way w3 = new Way(3); 1053 w3.incomplete = true;1054 1052 w3.setNodes(Arrays.asList(n1,n2)); 1055 1053 their.addPrimitive(w3); -
trunk/test/unit/org/openstreetmap/josm/data/osm/visitor/MergeSourceBuildingVisitorTest.java
r2388 r2498 136 136 DataSet source = new DataSet(); 137 137 Way w1 = new Way(3); 138 w1.incomplete = true;139 138 source.addPrimitive(w1); 140 139 source.setSelected(w1);
Note:
See TracChangeset
for help on using the changeset viewer.