Changeset 34898 in osm for applications/editors/josm/plugins/opendata/test
- Timestamp:
- 2019-02-24T20:31:40+01:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/opendata/test
- Files:
-
- 5 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/ShpReaderTest.java
r34153 r34898 2 2 package org.openstreetmap.josm.plugins.opendata.core.io.geographic; 3 3 4 import static org.junit.Assert.assertEquals; 4 5 import static org.junit.Assert.assertFalse; 5 6 import static org.junit.Assert.assertNotNull; … … 9 10 import java.io.FileInputStream; 10 11 import java.io.InputStream; 12 import java.util.Collection; 11 13 12 14 import org.junit.Ignore; … … 16 18 import org.openstreetmap.josm.data.coor.LatLon; 17 19 import org.openstreetmap.josm.data.osm.Node; 20 import org.openstreetmap.josm.data.osm.Way; 18 21 import org.openstreetmap.josm.plugins.opendata.core.io.NonRegFunctionalTests; 19 22 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 85 88 } 86 89 } 90 91 /** 92 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/12843">#12843</a> 93 * @throws Exception if an error occurs during reading 94 */ 95 @Test 96 public void testTicket12843() throws Exception { 97 File file = new File(TestUtils.getRegressionDataFile(12843, "test.shp")); 98 try (InputStream is = new FileInputStream(file)) { 99 Collection<Way> ways = ShpReader.parseDataSet(is, file, null, null).getWays(); 100 assertFalse(ways.isEmpty()); 101 for (Way way : ways) { 102 assertEquals("Test", way.get("name")); 103 } 104 } 105 } 87 106 }
Note:
See TracChangeset
for help on using the changeset viewer.