Ignore:
Timestamp:
2018-04-08T15:24:48+02:00 (7 years ago)
Author:
donvip
Message:

fix javadoc warnings

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  
    2323import org.openstreetmap.josm.tools.CheckParameterUtil;
    2424
     25/**
     26 * Superclass of non-reg functional tests.
     27 */
    2528public abstract class NonRegFunctionalTests {
    2629
    2730    /**
    2831     * Non-regression generic test.
     32     * @param context context
     33     * @param ds data set
    2934     */
    3035    public static void testGeneric(String context, DataSet ds) {
     
    5257    /**
    5358     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/10214">#10214</a>
     59     * @param ds data set
    5460     */
    5561    public static void testTicket10214(DataSet ds) {
     
    7076     * Lists all datasets files matching given extension.
    7177     * @param ext file extension to search for
     78     * @return all datasets files matching given extension
    7279     * @returns List of all datasets files matching given extension
    7380     * @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  
    77import java.io.File;
    88import java.io.FileInputStream;
    9 import java.io.IOException;
    109import java.io.InputStream;
    11 
    12 import javax.xml.stream.FactoryConfigurationError;
    13 import javax.xml.stream.XMLStreamException;
    1410
    1511import org.junit.Rule;
     
    3228    /**
    3329     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/11624">#11624</a>
    34      * @throws IOException if an error occurs during reading
     30     * @throws Exception if an error occurs during reading
    3531     */
    3632    @Test
    37     public void testTicket11624() throws IOException, XMLStreamException, FactoryConfigurationError {
     33    public void testTicket11624() throws Exception {
    3834        File file = new File(TestUtils.getRegressionDataFile(11624, "temp3.gml"));
    3935        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  
    55import static org.junit.Assert.assertTrue;
    66
    7 import java.io.IOException;
    87import java.io.InputStream;
    9 
    10 import javax.xml.stream.FactoryConfigurationError;
    11 import javax.xml.stream.XMLStreamException;
    128
    139import org.junit.Rule;
     
    4642    /**
    4743     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/12694">#12694</a>
    48      * @throws IOException if an error occurs during reading
     44     * @throws Exception if an error occurs during reading
    4945     */
    5046    @Test
    51     public void testTicket12694() throws IOException, XMLStreamException, FactoryConfigurationError {
     47    public void testTicket12694() throws Exception {
    5248        try (InputStream is = TestUtils.getRegressionDataStream(12694, "Alvinรณpolis_314946.kml")) {
    5349            NonRegFunctionalTests.testGeneric("#12694", KmlReader.parseDataSet(is, null));
     
    5753    /**
    5854     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/10214">#10214</a>
    59      * @throws IOException if an error occurs during reading
     55     * @throws Exception if an error occurs during reading
    6056     */
    6157    @Test
    62     public void testTicket10214() throws IOException, XMLStreamException, FactoryConfigurationError {
     58    public void testTicket10214() throws Exception {
    6359        try (InputStream is = TestUtils.getRegressionDataStream(10214, "utf8_test.kml")) {
    6460            NonRegFunctionalTests.testTicket10214(KmlReader.parseDataSet(is, null));
     
    6864    /**
    6965     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/7714">#7714</a>
    70      * @throws IOException if an error occurs during reading
     66     * @throws Exception if an error occurs during reading
    7167     */
    7268    @Test
    73     public void testTicket7714() throws IOException, XMLStreamException, FactoryConfigurationError {
     69    public void testTicket7714() throws Exception {
    7470        try (InputStream is = TestUtils.getRegressionDataStream(7714, "doc.kml")) {
    7571            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  
    88import java.io.File;
    99import java.io.FileInputStream;
    10 import java.io.IOException;
    1110import java.io.InputStream;
    12 
    13 import javax.xml.stream.FactoryConfigurationError;
    14 import javax.xml.stream.XMLStreamException;
    1511
    1612import org.junit.Ignore;
     
    3632    /**
    3733     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/12714">#12714</a>
    38      * @throws IOException if an error occurs during reading
     34     * @throws Exception if an error occurs during reading
    3935     */
    4036    @Test
    41     public void testTicket12714() throws IOException, XMLStreamException, FactoryConfigurationError {
     37    public void testTicket12714() throws Exception {
    4238        File file = new File(TestUtils.getRegressionDataFile(12714, "linhas.shp"));
    4339        try (InputStream is = new FileInputStream(file)) {
     
    5046    /**
    5147     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/11761">#11761</a>
    52      * @throws IOException if an error occurs during reading
     48     * @throws Exception if an error occurs during reading
    5349     */
    5450    @Test
    5551    @Ignore("work in progress")
    56     public void testTicket11761() throws IOException, XMLStreamException, FactoryConfigurationError {
     52    public void testTicket11761() throws Exception {
    5753        File file = new File(TestUtils.getRegressionDataFile(11761, "HAR.shp"));
    5854        try (InputStream is = new FileInputStream(file)) {
     
    6864    /**
    6965     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/10214">#10214</a>
    70      * @throws IOException if an error occurs during reading
     66     * @throws Exception if an error occurs during reading
    7167     */
    7268    @Test
    73     public void testTicket10214() throws IOException, XMLStreamException, FactoryConfigurationError {
     69    public void testTicket10214() throws Exception {
    7470        File file = new File(TestUtils.getRegressionDataFile(10214, "utf8_test.shp"));
    7571        try (InputStream is = new FileInputStream(file)) {
     
    8076    /**
    8177     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/8309">#8309</a>
    82      * @throws IOException if an error occurs during reading
     78     * @throws Exception if an error occurs during reading
    8379     */
    8480    @Test
    85     public void testTicket8309() throws IOException, XMLStreamException, FactoryConfigurationError {
     81    public void testTicket8309() throws Exception {
    8682        File file = new File(TestUtils.getRegressionDataFile(8309, "new_ti_declarada.shp"));
    8783        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  
    44import java.io.File;
    55import java.io.FileInputStream;
    6 import java.io.IOException;
    76import java.io.InputStream;
    8 
    9 import javax.xml.stream.FactoryConfigurationError;
    10 import javax.xml.stream.XMLStreamException;
    117
    128import org.junit.Rule;
     
    2925    /**
    3026     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/15159">#15159</a>
    31      * @throws IOException if an error occurs during reading
     27     * @throws Exception if an error occurs during reading
    3228     */
    3329    @Test
    34     public void testTicket15159() throws IOException, XMLStreamException, FactoryConfigurationError {
     30    public void testTicket15159() throws Exception {
    3531        File file = new File(TestUtils.getRegressionDataFile(15159, "Sanisette.tab"));
    3632        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  
    22package org.openstreetmap.josm.plugins.opendata.core.io.tabular;
    33
    4 import java.io.IOException;
    54import java.io.InputStream;
    6 
    7 import javax.xml.stream.FactoryConfigurationError;
    8 import javax.xml.stream.XMLStreamException;
    95
    106import org.junit.Rule;
     
    5753    /**
    5854     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/13508">#13508</a>
    59      * @throws IOException if an error occurs during reading
     55     * @throws Exception if an error occurs during reading
    6056     */
    6157    @Test
    62     public void testTicket13508() throws IOException, XMLStreamException, FactoryConfigurationError {
     58    public void testTicket13508() throws Exception {
    6359        try (InputStream is = TestUtils.getRegressionDataStream(13508, "arrets-de-bus0.csv")) {
    6460            NonRegFunctionalTests.testGeneric("#13508", CsvReader.parseDataSet(is, newHandler("EPSG:4326"), null));
     
    6864    /**
    6965     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/10214">#10214</a>
    70      * @throws IOException if an error occurs during reading
     66     * @throws Exception if an error occurs during reading
    7167     */
    7268    @Test
    73     public void testTicket10214() throws IOException, XMLStreamException, FactoryConfigurationError {
     69    public void testTicket10214() throws Exception {
    7470        try (InputStream is = TestUtils.getRegressionDataStream(10214, "utf8_test.csv")) {
    7571            NonRegFunctionalTests.testTicket10214(CsvReader.parseDataSet(is, newHandler("EPSG:4326"), null));
     
    7975    /**
    8076     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/8805">#8805</a>
    81      * @throws IOException if an error occurs during reading
     77     * @throws Exception if an error occurs during reading
    8278     */
    8379    @Test
    84     public void testTicket8805() throws IOException, XMLStreamException, FactoryConfigurationError {
     80    public void testTicket8805() throws Exception {
    8581        try (InputStream is = TestUtils.getRegressionDataStream(8805, "XXX.csv")) {
    8682            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  
    22package org.openstreetmap.josm.plugins.opendata.core.io.tabular;
    33
    4 import java.io.IOException;
    54import java.io.InputStream;
    6 
    7 import javax.xml.stream.FactoryConfigurationError;
    8 import javax.xml.stream.XMLStreamException;
    95
    106import org.junit.Rule;
     
    2723    /**
    2824     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/13821">#13821</a>
    29      * @throws IOException if an error occurs during reading
     25     * @throws Exception if an error occurs during reading
    3026     */
    3127    @Test
    32     public void testTicket13821() throws IOException, XMLStreamException, FactoryConfigurationError {
     28    public void testTicket13821() throws Exception {
    3329        try (InputStream is = TestUtils.getRegressionDataStream(13821, "1_set_v_0.6_2016_06_21_06_00_23_a.ods")) {
    3430            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  
    55import static org.junit.Assert.assertNotNull;
    66
    7 import java.io.IOException;
    87import java.io.InputStream;
    9 
    10 import javax.xml.stream.FactoryConfigurationError;
    11 import javax.xml.stream.XMLStreamException;
    128
    139import org.junit.Rule;
     
    6157    /**
    6258     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/15980">#15980</a>
    63      * @throws IOException if an error occurs during reading
     59     * @throws Exception if an error occurs during reading
    6460     */
    6561    @Test
    66     public void testTicket15980() throws IOException, XMLStreamException, FactoryConfigurationError {
     62    public void testTicket15980() throws Exception {
    6763        try (InputStream is = TestUtils.getRegressionDataStream(15980, "qry_OSM_Import_Orte.xls")) {
    6864            DataSet ds = XlsReader.parseDataSet(is, newHandler("EPSG:4326"), null);
Note: See TracChangeset for help on using the changeset viewer.