Ignore:
Timestamp:
2010-03-30T09:35:23+02:00 (14 years ago)
Author:
jttt
Message:

Different fix for #4815 - having bbox in each instance of Node would need too much memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/osm/QuadBucketsTest.java

    r3153 r3166  
    99import org.junit.Test;
    1010import org.openstreetmap.josm.Main;
     11import org.openstreetmap.josm.data.coor.LatLon;
    1112import org.openstreetmap.josm.data.projection.Mercator;
    1213import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
     
    1516public class QuadBucketsTest {
    1617
    17     @Test
    18     public void testRemove() throws Exception {
    19         Main.proj = new Mercator();
    20         DataSet ds = OsmReader.parseDataSet(new FileInputStream("data_nodist/restriction.osm"), NullProgressMonitor.INSTANCE);
     18    private void removeAllTest(DataSet ds) {
    2119        List<Node> allNodes = new ArrayList<Node>(ds.getNodes());
    2220        List<Way> allWays = new ArrayList<Way>(ds.getWays());
     
    3735    }
    3836
     37    @Test
     38    public void testRemove() throws Exception {
     39        Main.proj = new Mercator();
     40        DataSet ds = OsmReader.parseDataSet(new FileInputStream("data_nodist/restriction.osm"), NullProgressMonitor.INSTANCE);
     41        removeAllTest(ds);
     42    }
     43
     44    @Test
     45    public void testMove() throws Exception {
     46        Main.proj = new Mercator();
     47        DataSet ds = OsmReader.parseDataSet(new FileInputStream("data_nodist/restriction.osm"), NullProgressMonitor.INSTANCE);
     48
     49        for (Node n: ds.getNodes()) {
     50            n.setCoor(new LatLon(10, 10));
     51        }
     52
     53        removeAllTest(ds);
     54    }
     55
    3956}
Note: See TracChangeset for help on using the changeset viewer.