Changeset 2498 in josm for trunk/test
- Timestamp:
- 2009-11-22T12:45:38+01:00 (15 years ago)
- Location:
- trunk/test
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java
r2401 r2498 56 56 // 57 57 for (int i=0; i< numNodes; i++) { 58 Node n = new Node( 0);58 Node n = new Node(); 59 59 n.setCoor(new LatLon(-36.6,47.6)); 60 60 n.put("name", "node-"+i); 61 n.incomplete = false;62 61 ds.addPrimitive(n); 63 62 nodes.add(n); … … 68 67 // 69 68 for (int i=0; i< numWays; i++) { 70 Way w = new Way(0); 71 w.incomplete = false; 69 Way w = new Way(); 72 70 int numNodesInWay = 2 + (int)Math.round(Math.random() * 5); 73 71 int start = (int)Math.round(Math.random() * numNodes); … … 86 84 // 87 85 for (int i=0; i< numRelations; i++) { 88 Relation r = new Relation(0); 89 r.incomplete = false; 86 Relation r = new Relation(); 90 87 r.put("name", "relation-" +i); 91 88 int numNodesInRelation = (int)Math.round(Math.random() * 10); … … 132 129 133 130 @BeforeClass 134 public static void init() throws OsmTransferException , InterruptedException{131 public static void init() throws OsmTransferException { 135 132 logger.info("initializing ..."); 136 133 testProperties = new Properties(); -
trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java
r2399 r2498 62 62 protected static void populateTestDataSetWithNodes(DataSet ds) { 63 63 for (int i=0;i<100;i++) { 64 Node n = new Node( 0);64 Node n = new Node(); 65 65 n.setCoor(new LatLon(-36.6,47.6)); 66 66 n.put("name", "node-"+i); 67 n.incomplete = false;68 67 ds.addPrimitive(n); 69 68 } … … 72 71 protected static void populateTestDataSetWithWays(DataSet ds) { 73 72 for (int i=0;i<20;i++) { 74 Way w = new Way(0); 75 w.incomplete = false; 73 Way w = new Way(); 76 74 for (int j = 0; j < 10;j++) { 77 75 w.addNode(lookupNode(ds, i+j)); … … 84 82 protected static void populateTestDataSetWithRelations(DataSet ds) { 85 83 for (int i=0;i<10;i++) { 86 Relation r = new Relation(0); 87 r.incomplete = false; 84 Relation r = new Relation(); 88 85 r.put("name", "relation-" +i); 89 86 for (int j =0; j < 10; j++) { … … 139 136 140 137 @BeforeClass 141 public static void init() throws OsmTransferException , InterruptedException{138 public static void init() throws OsmTransferException { 142 139 logger.info("initializing ..."); 143 140 testProperties = new Properties(); -
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.