Changeset 7025 in josm for trunk/test/functional


Ignore:
Timestamp:
2014-04-29T03:24:57+02:00 (6 years ago)
Author:
Don-vip
Message:

Sonar - fix various issues

Location:
trunk/test/functional/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/gui/history/HistoryBrowserTest.java

    r6643 r7025  
    66import java.awt.BorderLayout;
    77import java.io.File;
     8import java.io.IOException;
    89import java.io.InputStream;
    910import java.text.MessageFormat;
     
    4445                is.close();
    4546            }
    46         } catch(Exception e){
     47        } catch(IOException e){
    4748            logger.log(Level.SEVERE, MessageFormat.format("failed to load property file ''{0}''", "test-functional-env.properties"));
    4849            fail(MessageFormat.format("failed to load property file ''{0}''", "test-functional-env.properties"));
  • trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java

    r7005 r7025  
    111111    }
    112112
    113     static public DataSet testDataSet;
    114     static public Properties testProperties;
     113    private static DataSet testDataSet;
     114    private static Properties testProperties;
    115115
    116116    /**
     
    120120     * @throws OsmTransferException
    121121     */
    122     static public void createDataSetOnServer(DataSet ds) throws OsmTransferException {
     122    public static void createDataSetOnServer(DataSet ds) throws OsmTransferException {
    123123        logger.info("creating data set on the server ...");
    124124        ArrayList<OsmPrimitive> primitives = new ArrayList<>();
     
    147147                is.close();
    148148            }
    149         } catch(Exception e){
     149        } catch(IOException e){
    150150            logger.log(Level.SEVERE, MessageFormat.format("failed to load property file ''{0}''", "test-functional-env.properties"));
    151151            fail(MessageFormat.format("failed to load property file ''{0}''", "test-functional-env.properties"));
  • trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java

    r7005 r7025  
    154154                is.close();
    155155            }
    156         } catch(Exception e){
     156        } catch(IOException e){
    157157            logger.log(Level.SEVERE, MessageFormat.format("failed to load property file ''{0}''", "test-functional-env.properties"));
    158158            fail(MessageFormat.format("failed to load property file ''{0}''", "test-functional-env.properties"));
Note: See TracChangeset for help on using the changeset viewer.