Changeset 2498 in josm for trunk/test/functional/org/openstreetmap
- Timestamp:
- 2009-11-22T12:45:38+01:00 (15 years ago)
- Location:
- trunk/test/functional/org/openstreetmap/josm/io
- Files:
-
- 2 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();
Note:
See TracChangeset
for help on using the changeset viewer.