Changeset 31990 in osm for applications/editors/josm/plugins
- Timestamp:
- 2016-01-16T18:47:23+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/KmlReaderTest.java
r30573 r31990 35 35 @Test 36 36 public void testTicket10214() throws IOException, XMLStreamException, FactoryConfigurationError { 37 File file = new File(TestUtils.getRegressionDataFile(10214, "utf8_test.kml")); 38 try (InputStream is = new FileInputStream(file)) { 37 try (InputStream is = TestUtils.getRegressionDataStream(10214, "utf8_test.kml")) { 39 38 NonRegFunctionalTests.testTicket10214(KmlReader.parseDataSet(is, null)); 40 39 } … … 47 46 @Test 48 47 public void testTicket7714() throws IOException, XMLStreamException, FactoryConfigurationError { 49 File file = new File(TestUtils.getRegressionDataFile(7714, "doc.kml")); 50 try (InputStream is = new FileInputStream(file)) { 48 try (InputStream is = TestUtils.getRegressionDataStream(7714, "doc.kml")) { 51 49 NonRegFunctionalTests.testGeneric("#7714", KmlReader.parseDataSet(is, null)); 52 50 } -
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/tabular/CsvReaderTest.java
r30573 r31990 63 63 @Test 64 64 public void testTicket10214() throws IOException, XMLStreamException, FactoryConfigurationError { 65 File file = new File(TestUtils.getRegressionDataFile(10214, "utf8_test.csv")); 66 try (InputStream is = new FileInputStream(file)) { 65 try (InputStream is = TestUtils.getRegressionDataStream(10214, "utf8_test.csv")) { 67 66 NonRegFunctionalTests.testTicket10214(CsvReader.parseDataSet(is, newHandler("EPSG:4326"), null)); 68 67 } … … 75 74 @Test 76 75 public void testTicket8805() throws IOException, XMLStreamException, FactoryConfigurationError { 77 File file = new File(TestUtils.getRegressionDataFile(8805, "XXX.csv")); 78 try (InputStream is = new FileInputStream(file)) { 76 try (InputStream is = TestUtils.getRegressionDataStream(8805, "XXX.csv")) { 79 77 NonRegFunctionalTests.testGeneric("#8805", CsvReader.parseDataSet(is, newHandler("EPSG:4326"), null)); 80 78 }
Note:
See TracChangeset
for help on using the changeset viewer.