Ignore:
Timestamp:
2014-08-08T00:47:24+02:00 (11 years ago)
Author:
donvip
Message:

[josm_opendata] MIF:

  • correct handling of charsets
  • support of multi segments polylines
  • improve unit tests
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  
    1616
    1717import org.openstreetmap.josm.TestUtils;
     18import org.openstreetmap.josm.data.coor.LatLon;
    1819import org.openstreetmap.josm.data.osm.DataSet;
    1920import org.openstreetmap.josm.data.osm.Node;
     
    3233        Collection<Node> nodes = ds.getNodes();
    3334        assertFalse("No nodes in dataset for "+context, nodes.isEmpty());
    34         // Nodes should all have coordinates
     35        // Nodes should all have valid coordinates
    3536        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());
    3740        }
    3841        // and no empty ways
Note: See TracChangeset for help on using the changeset viewer.