Changeset 9621 in josm for trunk/test/unit


Ignore:
Timestamp:
2016-01-25T00:36:01+01:00 (4 years ago)
Author:
Don-vip
Message:

see #10588 - properly manage exception feedback in PluginDownloadTask. Removes a Findbugs warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceTest.java

    r9611 r9621  
    5353                new PluginDownloadTask(NullProgressMonitor.INSTANCE, Arrays.asList(dummy), "")));
    5454        assertEquals("The following plugin has been downloaded <strong>successfully</strong>:<ul><li>dummy_plugin (31772)</li></ul>"+
    55                      "Downloading the following plugin has <strong>failed</strong>:<ul><li>dummy_plugin</li></ul>",
     55                     "Downloading the following plugin has <strong>failed</strong>:<ul><li>dummy_plugin</li></ul>"+
     56                     "<br>Error message(untranslated): test",
    5657                PluginPreference.buildDownloadSummary(
    5758                        new PluginDownloadTask(NullProgressMonitor.INSTANCE, Arrays.asList(dummy), "") {
     
    6465                    public Collection<PluginInformation> getDownloadedPlugins() {
    6566                        return Collections.singleton(dummy);
     67                    }
     68
     69                    @Override
     70                    public Exception getLastException() {
     71                        return new Exception("test");
    6672                    }
    6773                }));
Note: See TracChangeset for help on using the changeset viewer.