Changeset 1898 in josm for trunk/test/functional
- Timestamp:
- 2009-08-03T21:18:50+02: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
r1814 r1898 33 33 import org.openstreetmap.josm.data.projection.Mercator; 34 34 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 35 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;36 35 import org.xml.sax.SAXException; 37 36 … … 275 274 Way w2 = (Way)ds.getPrimitiveById(w1.id); 276 275 assertNotNull(w2); 277 assertEquals(w2. nodes.size(), w1.nodes.size());276 assertEquals(w2.getNodesCount(), w1.getNodesCount()); 278 277 assertEquals(w2.get("name"),w1.get("name")); 279 278 } … … 340 339 assertFalse(reader.getMissingPrimitives().isEmpty()); 341 340 assertEquals(1, reader.getMissingPrimitives().size()); 342 assertEquals(9999999, reader.getMissingPrimitives().iterator().next());341 assertEquals(9999999, (long)reader.getMissingPrimitives().iterator().next()); 343 342 } 344 343 } -
trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java
r1814 r1898 32 32 import org.openstreetmap.josm.data.projection.Mercator; 33 33 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 34 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;35 34 import org.xml.sax.SAXException; 36 35 … … 280 279 assertEquals(w.id, way.id); 281 280 assertEquals(false, way.incomplete); 282 assertEquals(10, w. nodes.size());281 assertEquals(10, w.getNodesCount()); 283 282 } 284 283 } … … 326 325 for (Way way: referers.ways) { 327 326 Way orig = (Way)ds.getPrimitiveById(way.id); 328 for(Node n: orig. nodes) {327 for(Node n: orig.getNodes()) { 329 328 expectedNodeIds.add(n.id); 330 329 } … … 417 416 HashSet<Long> ret = new HashSet<Long>(); 418 417 if (way == null)return ret; 419 for (Node n: way. nodes) {418 for (Node n: way.getNodes()) { 420 419 ret.add(n.id); 421 420 }
Note:
See TracChangeset
for help on using the changeset viewer.