Changeset 16159 in josm for trunk/test/unit/org/openstreetmap/josm/plugins
- Timestamp:
- 2020-03-17T20:09:38+01:00 (4 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerJOSMTooOldTest.java
r14213 r16159 10 10 import java.io.IOException; 11 11 import java.nio.file.Files; 12 import java.util.Collections; 12 13 import java.util.List; 13 14 … … 254 255 final PluginServer pluginServer = new PluginServer( 255 256 new PluginServer.RemotePlugin(this.referenceDummyJarNew), 256 new PluginServer.RemotePlugin(this.referenceBazJarNew, ImmutableMap.of( 257 "Plugin-Mainversion", "5500" 258 )) 257 new PluginServer.RemotePlugin(this.referenceBazJarNew, Collections.singletonMap("Plugin-Mainversion", "5500")) 259 258 ); 260 259 pluginServer.applyToWireMockServer(this.pluginServerRule); … … 312 311 final PluginServer pluginServer = new PluginServer( 313 312 new PluginServer.RemotePlugin(this.referenceBazJarOld), 314 new PluginServer.RemotePlugin(this.referenceQuxJarNewer, ImmutableMap.of(313 new PluginServer.RemotePlugin(this.referenceQuxJarNewer, Collections.singletonMap( 315 314 "7499_Plugin-Url", "346;http://localhost:" + this.pluginServerRule.port() + "/dont/bother.jar" 316 315 )) … … 319 318 Config.getPref().putList("plugins", ImmutableList.of("qux_plugin", "baz_plugin")); 320 319 321 new ExtendedDialogMocker( ImmutableMap.of("JOSM version 7,500 required for plugin qux_plugin.", "Download Plugin"));320 new ExtendedDialogMocker(Collections.singletonMap("JOSM version 7,500 required for plugin qux_plugin.", "Download Plugin")); 322 321 323 322 Files.copy(this.referenceQuxJarOld.toPath(), this.targetQuxJar.toPath()); -
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTest.java
r15737 r16159 9 9 import java.util.ArrayList; 10 10 import java.util.Arrays; 11 import java.util.Collections; 11 12 import java.util.List; 12 13 import java.util.stream.Collectors; … … 27 28 import org.openstreetmap.josm.testutils.mockers.HelpAwareOptionPaneMocker; 28 29 import org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker; 29 30 import com.google.common.collect.ImmutableMap;31 30 32 31 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; … … 104 103 TestUtils.assumeWorkingJMockit(); 105 104 final JOptionPaneSimpleMocker jopsMocker = new JOptionPaneSimpleMocker( 106 ImmutableMap.<String, Object>of(105 Collections.singletonMap( 107 106 "<html>The following plugin is no longer necessary and has been deactivated:" + 108 107 "<ul><li>imagery (integrated into main program)</li></ul></html>", … … 129 128 TestUtils.assumeWorkingJMockit(); 130 129 final HelpAwareOptionPaneMocker haMocker = new HelpAwareOptionPaneMocker( 131 ImmutableMap.<String, Object>of(130 Collections.singletonMap( 132 131 "<html>Loading of the plugin \"gpsbabelgui\" was requested.<br>" + 133 132 "This plugin is no longer developed and very likely will produce errors.<br>" +
Note:
See TracChangeset
for help on using the changeset viewer.