Changeset 16159 in josm for trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerJOSMTooOldTest.java
- Timestamp:
- 2020-03-17T20:09:38+01:00 (4 years ago)
- File:
-
- 1 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());
Note:
See TracChangeset
for help on using the changeset viewer.