Ignore:
Timestamp:
2009-08-03T21:18:50+02:00 (15 years ago)
Author:
jttt
Message:

Way refactoring - rewritten another parts of code to the new nodes api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java

    r1814 r1898  
    3232import org.openstreetmap.josm.data.projection.Mercator;
    3333import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    34 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;
    3534import org.xml.sax.SAXException;
    3635
     
    280279            assertEquals(w.id, way.id);
    281280            assertEquals(false, way.incomplete);
    282             assertEquals(10, w.nodes.size());
     281            assertEquals(10, w.getNodesCount());
    283282        }
    284283    }
     
    326325        for (Way way: referers.ways) {
    327326            Way orig = (Way)ds.getPrimitiveById(way.id);
    328             for(Node n: orig.nodes) {
     327            for(Node n: orig.getNodes()) {
    329328                expectedNodeIds.add(n.id);
    330329            }
     
    417416        HashSet<Long> ret = new HashSet<Long>();
    418417        if (way == null)return ret;
    419         for (Node n: way.nodes) {
     418        for (Node n: way.getNodes()) {
    420419            ret.add(n.id);
    421420        }
Note: See TracChangeset for help on using the changeset viewer.