Ignore:
Timestamp:
2024-04-22T20:59:26+02:00 (6 weeks ago)
Author:
taylor.smock
Message:

Revert most var changes from r19048, fix most new compile warnings and checkstyle issues

Also, document why various ErrorProne checks were originally disabled and fix
generic SonarLint issues.

File:
1 edited

Legend:

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

    r18870 r19050  
    9191    @AssumeRevision("Revision: 7501\n")
    9292    @Test
    93     void testUpdatePluginsOneMultiVersion(WireMockRuntimeInfo wireMockRuntimeInfo) throws Exception {
     93    void testUpdatePluginsOneMultiVersion() throws Exception {
    9494        TestUtils.assumeWorkingJMockit();
    9595
    9696        final String quxNewerServePath = "/qux/newer.jar";
    97         final Map<String, String> attrOverrides = new HashMap<String, String>() {{
     97        final Map<String, String> attrOverrides = new HashMap<>() {{
    9898            put("7500_Plugin-Url", "432;" + pluginServerRule.url(quxNewerServePath));
    9999            put("7499_Plugin-Url", "346;" + pluginServerRule.url("/not/served.jar"));
     
    104104            new PluginServer.RemotePlugin(this.referenceQuxJarNewest, attrOverrides)
    105105        );
     106        final WireMockRuntimeInfo wireMockRuntimeInfo = pluginServerRule.getRuntimeInfo();
    106107        pluginServer.applyToWireMockServer(wireMockRuntimeInfo);
    107108        // need to actually serve this older jar from somewhere
     
    158159    @AssumeRevision("Revision: 7000\n")
    159160    @Test
    160     void testUpdatePluginsExistingVersionLatestPossible(WireMockRuntimeInfo wireMockRuntimeInfo) throws Exception {
     161    void testUpdatePluginsExistingVersionLatestPossible() throws Exception {
    161162        TestUtils.assumeWorkingJMockit();
    162163
    163         final Map<String, String> attrOverrides = new HashMap<String, String>() {{
     164        final Map<String, String> attrOverrides = new HashMap<>() {{
    164165            put("7500_Plugin-Url", "432;" + pluginServerRule.url("/dont.jar"));
    165166            put("7499_Plugin-Url", "346;" + pluginServerRule.url("/even.jar"));
     
    170171            new PluginServer.RemotePlugin(this.referenceQuxJarNewest, attrOverrides)
    171172        );
    172         pluginServer.applyToWireMockServer(wireMockRuntimeInfo);
     173        pluginServer.applyToWireMockServer(pluginServerRule.getRuntimeInfo());
    173174        Config.getPref().putList("plugins", Arrays.asList("qux_plugin", "baz_plugin"));
    174175
Note: See TracChangeset for help on using the changeset viewer.