Changeset 34153 in osm for applications/editors/josm/plugins/opendata/test
- Timestamp:
- 2018-04-08T15:24:48+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/NonRegFunctionalTests.java
r33156 r34153 23 23 import org.openstreetmap.josm.tools.CheckParameterUtil; 24 24 25 /** 26 * Superclass of non-reg functional tests. 27 */ 25 28 public abstract class NonRegFunctionalTests { 26 29 27 30 /** 28 31 * Non-regression generic test. 32 * @param context context 33 * @param ds data set 29 34 */ 30 35 public static void testGeneric(String context, DataSet ds) { … … 52 57 /** 53 58 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/10214">#10214</a> 59 * @param ds data set 54 60 */ 55 61 public static void testTicket10214(DataSet ds) { … … 70 76 * Lists all datasets files matching given extension. 71 77 * @param ext file extension to search for 78 * @return all datasets files matching given extension 72 79 * @returns List of all datasets files matching given extension 73 80 * @throws IOException in case of I/O error -
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/GmlReaderTest.java
r33156 r34153 7 7 import java.io.File; 8 8 import java.io.FileInputStream; 9 import java.io.IOException;10 9 import java.io.InputStream; 11 12 import javax.xml.stream.FactoryConfigurationError;13 import javax.xml.stream.XMLStreamException;14 10 15 11 import org.junit.Rule; … … 32 28 /** 33 29 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/11624">#11624</a> 34 * @throws IOException if an error occurs during reading30 * @throws Exception if an error occurs during reading 35 31 */ 36 32 @Test 37 public void testTicket11624() throws IOException, XMLStreamException, FactoryConfigurationError{33 public void testTicket11624() throws Exception { 38 34 File file = new File(TestUtils.getRegressionDataFile(11624, "temp3.gml")); 39 35 try (InputStream is = new FileInputStream(file)) { -
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/KmlReaderTest.java
r33156 r34153 5 5 import static org.junit.Assert.assertTrue; 6 6 7 import java.io.IOException;8 7 import java.io.InputStream; 9 10 import javax.xml.stream.FactoryConfigurationError;11 import javax.xml.stream.XMLStreamException;12 8 13 9 import org.junit.Rule; … … 46 42 /** 47 43 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/12694">#12694</a> 48 * @throws IOException if an error occurs during reading44 * @throws Exception if an error occurs during reading 49 45 */ 50 46 @Test 51 public void testTicket12694() throws IOException, XMLStreamException, FactoryConfigurationError{47 public void testTicket12694() throws Exception { 52 48 try (InputStream is = TestUtils.getRegressionDataStream(12694, "Alvinรณpolis_314946.kml")) { 53 49 NonRegFunctionalTests.testGeneric("#12694", KmlReader.parseDataSet(is, null)); … … 57 53 /** 58 54 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/10214">#10214</a> 59 * @throws IOException if an error occurs during reading55 * @throws Exception if an error occurs during reading 60 56 */ 61 57 @Test 62 public void testTicket10214() throws IOException, XMLStreamException, FactoryConfigurationError{58 public void testTicket10214() throws Exception { 63 59 try (InputStream is = TestUtils.getRegressionDataStream(10214, "utf8_test.kml")) { 64 60 NonRegFunctionalTests.testTicket10214(KmlReader.parseDataSet(is, null)); … … 68 64 /** 69 65 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/7714">#7714</a> 70 * @throws IOException if an error occurs during reading66 * @throws Exception if an error occurs during reading 71 67 */ 72 68 @Test 73 public void testTicket7714() throws IOException, XMLStreamException, FactoryConfigurationError{69 public void testTicket7714() throws Exception { 74 70 try (InputStream is = TestUtils.getRegressionDataStream(7714, "doc.kml")) { 75 71 NonRegFunctionalTests.testGeneric("#7714", KmlReader.parseDataSet(is, null)); -
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/ShpReaderTest.java
r33156 r34153 8 8 import java.io.File; 9 9 import java.io.FileInputStream; 10 import java.io.IOException;11 10 import java.io.InputStream; 12 13 import javax.xml.stream.FactoryConfigurationError;14 import javax.xml.stream.XMLStreamException;15 11 16 12 import org.junit.Ignore; … … 36 32 /** 37 33 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/12714">#12714</a> 38 * @throws IOException if an error occurs during reading34 * @throws Exception if an error occurs during reading 39 35 */ 40 36 @Test 41 public void testTicket12714() throws IOException, XMLStreamException, FactoryConfigurationError{37 public void testTicket12714() throws Exception { 42 38 File file = new File(TestUtils.getRegressionDataFile(12714, "linhas.shp")); 43 39 try (InputStream is = new FileInputStream(file)) { … … 50 46 /** 51 47 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/11761">#11761</a> 52 * @throws IOException if an error occurs during reading48 * @throws Exception if an error occurs during reading 53 49 */ 54 50 @Test 55 51 @Ignore("work in progress") 56 public void testTicket11761() throws IOException, XMLStreamException, FactoryConfigurationError{52 public void testTicket11761() throws Exception { 57 53 File file = new File(TestUtils.getRegressionDataFile(11761, "HAR.shp")); 58 54 try (InputStream is = new FileInputStream(file)) { … … 68 64 /** 69 65 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/10214">#10214</a> 70 * @throws IOException if an error occurs during reading66 * @throws Exception if an error occurs during reading 71 67 */ 72 68 @Test 73 public void testTicket10214() throws IOException, XMLStreamException, FactoryConfigurationError{69 public void testTicket10214() throws Exception { 74 70 File file = new File(TestUtils.getRegressionDataFile(10214, "utf8_test.shp")); 75 71 try (InputStream is = new FileInputStream(file)) { … … 80 76 /** 81 77 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/8309">#8309</a> 82 * @throws IOException if an error occurs during reading78 * @throws Exception if an error occurs during reading 83 79 */ 84 80 @Test 85 public void testTicket8309() throws IOException, XMLStreamException, FactoryConfigurationError{81 public void testTicket8309() throws Exception { 86 82 File file = new File(TestUtils.getRegressionDataFile(8309, "new_ti_declarada.shp")); 87 83 try (InputStream is = new FileInputStream(file)) { -
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/TabReaderTest.java
r33613 r34153 4 4 import java.io.File; 5 5 import java.io.FileInputStream; 6 import java.io.IOException;7 6 import java.io.InputStream; 8 9 import javax.xml.stream.FactoryConfigurationError;10 import javax.xml.stream.XMLStreamException;11 7 12 8 import org.junit.Rule; … … 29 25 /** 30 26 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/15159">#15159</a> 31 * @throws IOException if an error occurs during reading27 * @throws Exception if an error occurs during reading 32 28 */ 33 29 @Test 34 public void testTicket15159() throws IOException, XMLStreamException, FactoryConfigurationError{30 public void testTicket15159() throws Exception { 35 31 File file = new File(TestUtils.getRegressionDataFile(15159, "Sanisette.tab")); 36 32 try (InputStream is = new FileInputStream(file)) { -
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/tabular/CsvReaderTest.java
r33156 r34153 2 2 package org.openstreetmap.josm.plugins.opendata.core.io.tabular; 3 3 4 import java.io.IOException;5 4 import java.io.InputStream; 6 7 import javax.xml.stream.FactoryConfigurationError;8 import javax.xml.stream.XMLStreamException;9 5 10 6 import org.junit.Rule; … … 57 53 /** 58 54 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/13508">#13508</a> 59 * @throws IOException if an error occurs during reading55 * @throws Exception if an error occurs during reading 60 56 */ 61 57 @Test 62 public void testTicket13508() throws IOException, XMLStreamException, FactoryConfigurationError{58 public void testTicket13508() throws Exception { 63 59 try (InputStream is = TestUtils.getRegressionDataStream(13508, "arrets-de-bus0.csv")) { 64 60 NonRegFunctionalTests.testGeneric("#13508", CsvReader.parseDataSet(is, newHandler("EPSG:4326"), null)); … … 68 64 /** 69 65 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/10214">#10214</a> 70 * @throws IOException if an error occurs during reading66 * @throws Exception if an error occurs during reading 71 67 */ 72 68 @Test 73 public void testTicket10214() throws IOException, XMLStreamException, FactoryConfigurationError{69 public void testTicket10214() throws Exception { 74 70 try (InputStream is = TestUtils.getRegressionDataStream(10214, "utf8_test.csv")) { 75 71 NonRegFunctionalTests.testTicket10214(CsvReader.parseDataSet(is, newHandler("EPSG:4326"), null)); … … 79 75 /** 80 76 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/8805">#8805</a> 81 * @throws IOException if an error occurs during reading77 * @throws Exception if an error occurs during reading 82 78 */ 83 79 @Test 84 public void testTicket8805() throws IOException, XMLStreamException, FactoryConfigurationError{80 public void testTicket8805() throws Exception { 85 81 try (InputStream is = TestUtils.getRegressionDataStream(8805, "XXX.csv")) { 86 82 NonRegFunctionalTests.testGeneric("#8805", CsvReader.parseDataSet(is, newHandler("EPSG:4326"), null)); -
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/tabular/OdsReaderTest.java
r33156 r34153 2 2 package org.openstreetmap.josm.plugins.opendata.core.io.tabular; 3 3 4 import java.io.IOException;5 4 import java.io.InputStream; 6 7 import javax.xml.stream.FactoryConfigurationError;8 import javax.xml.stream.XMLStreamException;9 5 10 6 import org.junit.Rule; … … 27 23 /** 28 24 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/13821">#13821</a> 29 * @throws IOException if an error occurs during reading25 * @throws Exception if an error occurs during reading 30 26 */ 31 27 @Test 32 public void testTicket13821() throws IOException, XMLStreamException, FactoryConfigurationError{28 public void testTicket13821() throws Exception { 33 29 try (InputStream is = TestUtils.getRegressionDataStream(13821, "1_set_v_0.6_2016_06_21_06_00_23_a.ods")) { 34 30 NonRegFunctionalTests.testGeneric("#13821", OdsReader.parseDataSet(is, null, null)); -
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/tabular/XlsReaderTest.java
r34072 r34153 5 5 import static org.junit.Assert.assertNotNull; 6 6 7 import java.io.IOException;8 7 import java.io.InputStream; 9 10 import javax.xml.stream.FactoryConfigurationError;11 import javax.xml.stream.XMLStreamException;12 8 13 9 import org.junit.Rule; … … 61 57 /** 62 58 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/15980">#15980</a> 63 * @throws IOException if an error occurs during reading59 * @throws Exception if an error occurs during reading 64 60 */ 65 61 @Test 66 public void testTicket15980() throws IOException, XMLStreamException, FactoryConfigurationError{62 public void testTicket15980() throws Exception { 67 63 try (InputStream is = TestUtils.getRegressionDataStream(15980, "qry_OSM_Import_Orte.xls")) { 68 64 DataSet ds = XlsReader.parseDataSet(is, newHandler("EPSG:4326"), null);
Note:
See TracChangeset
for help on using the changeset viewer.