Changeset 16159 in josm for trunk/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceHighLevelTest.java
- Timestamp:
- 2020-03-17T20:09:38+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceHighLevelTest.java
r14213 r16159 12 12 import java.nio.file.Files; 13 13 import java.util.Collection; 14 import java.util.Collections; 14 15 15 16 import javax.swing.JOptionPane; … … 35 36 import com.github.tomakehurst.wiremock.junit.WireMockRule; 36 37 import com.google.common.collect.ImmutableList; 37 import com.google.common.collect.ImmutableMap;38 38 39 39 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; … … 137 137 new PluginServer.RemotePlugin(this.referenceDummyJarNew), 138 138 new PluginServer.RemotePlugin(this.referenceBazJarOld), 139 new PluginServer.RemotePlugin(null, ImmutableMap.of("Plugin-Version", "2"), "irrelevant_plugin")139 new PluginServer.RemotePlugin(null, Collections.singletonMap("Plugin-Version", "2"), "irrelevant_plugin") 140 140 ); 141 141 pluginServer.applyToWireMockServer(this.pluginServerRule); … … 143 143 144 144 final HelpAwareOptionPaneMocker haMocker = new HelpAwareOptionPaneMocker( 145 ImmutableMap.<String, Object>of(145 Collections.singletonMap( 146 146 "<html>The following plugin has been downloaded <strong>successfully</strong>:" 147 147 + "<ul><li>baz_plugin (6)</li></ul>" … … 268 268 269 269 final HelpAwareOptionPaneMocker haMocker = new HelpAwareOptionPaneMocker( 270 ImmutableMap.<String, Object>of(270 Collections.singletonMap( 271 271 "<html>You have to restart JOSM for some settings to take effect." 272 272 + "<br/><br/>Would you like to restart now?</html>", … … 581 581 new PluginServer.RemotePlugin(this.referenceDummyJarOld), 582 582 new PluginServer.RemotePlugin(this.referenceBazJarOld), 583 new PluginServer.RemotePlugin(null, ImmutableMap.of("Plugin-Version", "123"), "irrelevant_plugin")583 new PluginServer.RemotePlugin(null, Collections.singletonMap("Plugin-Version", "123"), "irrelevant_plugin") 584 584 ); 585 585 pluginServer.applyToWireMockServer(this.pluginServerRule); … … 587 587 588 588 final HelpAwareOptionPaneMocker haMocker = new HelpAwareOptionPaneMocker( 589 ImmutableMap.<String, Object>of(589 Collections.singletonMap( 590 590 "All installed plugins are up to date. JOSM does not have to download newer versions.", 591 591 "OK" … … 740 740 741 741 final HelpAwareOptionPaneMocker haMocker = new HelpAwareOptionPaneMocker(); 742 final JOptionPaneSimpleMocker jopsMocker = new JOptionPaneSimpleMocker( ImmutableMap.<String, Object>of(742 final JOptionPaneSimpleMocker jopsMocker = new JOptionPaneSimpleMocker(Collections.singletonMap( 743 743 "<html>The following plugin has been downloaded <strong>successfully</strong>:" 744 744 + "<ul><li>dummy_plugin (31772)</li></ul></html>", … … 845 845 final PluginServer pluginServer = new PluginServer( 846 846 new PluginServer.RemotePlugin(this.referenceDummyJarNew), 847 new PluginServer.RemotePlugin(this.referenceBazJarNew, ImmutableMap.of(847 new PluginServer.RemotePlugin(this.referenceBazJarNew, Collections.singletonMap( 848 848 "6800_Plugin-Url", "6;http://localhost:" + this.pluginServerRule.port() + bazOldServePath 849 849 )) … … 860 860 Config.getPref().putList("plugins", ImmutableList.of()); 861 861 862 final HelpAwareOptionPaneMocker haMocker = new HelpAwareOptionPaneMocker( ImmutableMap.of(862 final HelpAwareOptionPaneMocker haMocker = new HelpAwareOptionPaneMocker(Collections.singletonMap( 863 863 "<html>The following plugin has been downloaded <strong>successfully</strong>:" 864 864 + "<ul><li>baz_plugin (6)</li></ul>"
Note:
See TracChangeset
for help on using the changeset viewer.