Ignore:
Timestamp:
2017-09-13T16:32:24+02:00 (4 years ago)
Author:
bastiK
Message:

see #15229 - fix test deprecations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java

    r12754 r12842  
    148148        PluginDownloadTask pluginDownloadTask = new PluginDownloadTask(NullProgressMonitor.INSTANCE, plugins, null);
    149149        // Increase default timeout to avoid random network errors on big jar files
    150         int defTimeout = Main.pref.getInteger("socket.timeout.read", 30);
    151         Main.pref.putInteger("socket.timeout.read", 2 * defTimeout);
     150        int defTimeout = Main.pref.getInt("socket.timeout.read", 30);
     151        Main.pref.putInt("socket.timeout.read", 2 * defTimeout);
    152152        pluginDownloadTask.run();
    153153        // Restore default timeout
    154         Main.pref.putInteger("socket.timeout.read", defTimeout);
     154        Main.pref.putInt("socket.timeout.read", defTimeout);
    155155        assertTrue(pluginDownloadTask.getFailedPlugins().toString(), pluginDownloadTask.getFailedPlugins().isEmpty());
    156156        assertEquals(plugins.size(), pluginDownloadTask.getDownloadedPlugins().size());
Note: See TracChangeset for help on using the changeset viewer.