Changeset 2388 in josm for trunk/test/functional/org/openstreetmap
- Timestamp:
- 2009-11-02T21:04:32+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java
r2381 r2388 15 15 import java.text.MessageFormat; 16 16 import java.util.ArrayList; 17 import java.util.Iterator;18 17 import java.util.Properties; 19 18 import java.util.logging.Level; … … 241 240 public void testMultiGet10Nodes() throws OsmTransferException { 242 241 MultiFetchServerObjectReader reader = new MultiFetchServerObjectReader(); 243 ArrayList<Node> nodes = new ArrayList<Node>(ds. nodes);242 ArrayList<Node> nodes = new ArrayList<Node>(ds.getNodes()); 244 243 for (int i =0; i< 10; i++) { 245 244 reader.append(nodes.get(i)); … … 247 246 DataSet out = reader.parseOsm(NullProgressMonitor.INSTANCE); 248 247 assertEquals(10, out.getNodes().size()); 249 Iterator<Node> it = out.nodes.iterator(); 250 while(it.hasNext()) { 251 Node n1 = it.next(); 248 for (Node n1:out.getNodes()) { 252 249 Node n2 = (Node)ds.getPrimitiveById(n1.getId(), OsmPrimitiveType.NODE); 253 250 assertNotNull(n2); … … 302 299 DataSet out = reader.parseOsm(NullProgressMonitor.INSTANCE); 303 300 assertEquals(812, out.getNodes().size()); 304 Iterator<Node> it = out.nodes.iterator(); 305 while(it.hasNext()) { 306 Node n1 = it.next(); 301 for (Node n1:out.getNodes()) { 307 302 Node n2 = (Node)ds.getPrimitiveById(n1.getId(), OsmPrimitiveType.NODE); 308 303 assertNotNull(n2);
Note:
See TracChangeset
for help on using the changeset viewer.