Changeset 3166 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2010-03-30T09:35:23+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/QuadBucketsTest.java
r3153 r3166 9 9 import org.junit.Test; 10 10 import org.openstreetmap.josm.Main; 11 import org.openstreetmap.josm.data.coor.LatLon; 11 12 import org.openstreetmap.josm.data.projection.Mercator; 12 13 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; … … 15 16 public class QuadBucketsTest { 16 17 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) { 21 19 List<Node> allNodes = new ArrayList<Node>(ds.getNodes()); 22 20 List<Way> allWays = new ArrayList<Way>(ds.getWays()); … … 37 35 } 38 36 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 39 56 }
Note:
See TracChangeset
for help on using the changeset viewer.