Changeset 32139 in osm for applications/editors/josm/plugins/opendata/test/unit/org
- Timestamp:
- 2016-04-02T15:00:31+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/ShpReaderTest.java
r30573 r32139 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.plugins.opendata.core.io.geographic; 3 4 import static org.junit.Assert.assertNotNull; 3 5 4 6 import java.io.File; … … 14 16 import org.openstreetmap.josm.JOSMFixture; 15 17 import org.openstreetmap.josm.TestUtils; 18 import org.openstreetmap.josm.data.osm.Node; 16 19 import org.openstreetmap.josm.plugins.opendata.core.io.NonRegFunctionalTests; 17 20 … … 28 31 JOSMFixture.createUnitTestFixture().init(); 29 32 } 30 33 34 /** 35 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/12714">#12714/a> 36 * @throws IOException if an error occurs during reading 37 */ 38 @Test 39 public void testTicket12714() throws IOException, XMLStreamException, FactoryConfigurationError { 40 File file = new File(TestUtils.getRegressionDataFile(12714, "linhas.shp")); 41 try (InputStream is = new FileInputStream(file)) { 42 for (Node n : ShpReader.parseDataSet(is, file, null, null).getNodes()) { 43 assertNotNull(n.toString(), n.getCoor()); 44 } 45 } 46 } 47 31 48 /** 32 49 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/10214">#10214</a>
Note:
See TracChangeset
for help on using the changeset viewer.