Changeset 30575 in osm for applications/editors/josm/plugins/opendata/test/unit
- Timestamp:
- 2014-08-08T00:47:24+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/NonRegFunctionalTests.java
r30573 r30575 16 16 17 17 import org.openstreetmap.josm.TestUtils; 18 import org.openstreetmap.josm.data.coor.LatLon; 18 19 import org.openstreetmap.josm.data.osm.DataSet; 19 20 import org.openstreetmap.josm.data.osm.Node; … … 32 33 Collection<Node> nodes = ds.getNodes(); 33 34 assertFalse("No nodes in dataset for "+context, nodes.isEmpty()); 34 // Nodes should all have coordinates 35 // Nodes should all have valid coordinates 35 36 for (Node n : nodes) { 36 assertTrue("Node without coordinate found for "+context, n.getCoor() != null); 37 LatLon latlon = n.getCoor(); 38 assertTrue("Node without coordinate found for "+context, latlon != null); 39 assertTrue("Node with invalid coordinate ("+latlon+") found for "+context, latlon.isValid()); 37 40 } 38 41 // and no empty ways
Note:
See TracChangeset
for help on using the changeset viewer.