Changeset 11974 in josm for trunk/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceTest.java
- Timestamp:
- 2017-04-22T17:57:11+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceTest.java
r10378 r11974 17 17 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 18 18 import org.openstreetmap.josm.plugins.PluginDownloadTask; 19 import org.openstreetmap.josm.plugins.PluginException; 19 20 import org.openstreetmap.josm.plugins.PluginInformation; 20 21 … … 41 42 42 43 /** 44 * Returns a dummy plugin information. 45 * @return a dummy plugin information 46 * @throws PluginException if an error occurs 47 */ 48 public static PluginInformation getDummyPluginInformation() throws PluginException { 49 return new PluginInformation( 50 new File(TestUtils.getTestDataRoot() + "plugin/dummy_plugin.jar"), "dummy_plugin"); 51 } 52 53 /** 43 54 * Unit test of {@link PluginPreference#buildDownloadSummary}. 44 55 * @throws Exception if an error occurs … … 46 57 @Test 47 58 public void testBuildDownloadSummary() throws Exception { 48 final PluginInformation dummy = new PluginInformation( 49 new File(TestUtils.getTestDataRoot() + "plugin/dummy_plugin.jar"), "dummy_plugin"); 59 final PluginInformation dummy = getDummyPluginInformation(); 50 60 assertEquals("", PluginPreference.buildDownloadSummary( 51 61 new PluginDownloadTask(NullProgressMonitor.INSTANCE, Collections.<PluginInformation>emptyList(), "")));
Note:
See TracChangeset
for help on using the changeset viewer.