Changeset 17195 in josm for trunk/test/unit/org/openstreetmap/josm/plugins
- Timestamp:
- 2020-10-13T22:31:09+02:00 (3 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
r17089 r17195 64 64 Config.getPref().put("pluginmanager.lastupdate", "999"); 65 65 Config.getPref().putList("pluginmanager.sites", 66 Collections.singletonList( String.format("http://localhost:%s/plugins", this.pluginServerRule.port()))66 Collections.singletonList(this.pluginServerRule.url("/plugins")) 67 67 ); 68 68 … … 310 310 new PluginServer.RemotePlugin(this.referenceBazJarOld), 311 311 new PluginServer.RemotePlugin(this.referenceQuxJarNewer, Collections.singletonMap( 312 "7499_Plugin-Url", "346; http://localhost:" + this.pluginServerRule.port() + "/dont/bother.jar"312 "7499_Plugin-Url", "346;" + this.pluginServerRule.url("/dont/bother.jar") 313 313 )) 314 314 ); -
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerMultiVersionTest.java
r16161 r17195 60 60 Config.getPref().put("pluginmanager.lastupdate", "999"); 61 61 Config.getPref().putList("pluginmanager.sites", 62 Collections.singletonList( String.format("http://localhost:%s/plugins", this.pluginServerRule.port()))62 Collections.singletonList(this.pluginServerRule.url("/plugins")) 63 63 ); 64 64 … … 101 101 final String quxNewerServePath = "/qux/newer.jar"; 102 102 final Map<String, String> attrOverrides = new HashMap<String, String>() {{ 103 put("7500_Plugin-Url", "432; http://localhost:" + pluginServerRule.port() + quxNewerServePath);104 put("7499_Plugin-Url", "346; http://localhost:" + pluginServerRule.port() + "/not/served.jar");105 put("6999_Plugin-Url", "345; http://localhost:" + pluginServerRule.port() + "/not/served/eithejar");103 put("7500_Plugin-Url", "432;" + pluginServerRule.url(quxNewerServePath)); 104 put("7499_Plugin-Url", "346;" + pluginServerRule.url("/not/served.jar")); 105 put("6999_Plugin-Url", "345;" + pluginServerRule.url("/not/served/eithejar")); 106 106 }}; 107 107 final PluginServer pluginServer = new PluginServer( … … 167 167 168 168 final Map<String, String> attrOverrides = new HashMap<String, String>() {{ 169 put("7500_Plugin-Url", "432; http://localhost:" + pluginServerRule.port() + "/dont.jar");170 put("7499_Plugin-Url", "346; http://localhost:" + pluginServerRule.port() + "/even.jar");171 put("6999_Plugin-Url", "345; http://localhost:" + pluginServerRule.port() + "/bother.jar");169 put("7500_Plugin-Url", "432;" + pluginServerRule.url("/dont.jar")); 170 put("7499_Plugin-Url", "346;" + pluginServerRule.url("/even.jar")); 171 put("6999_Plugin-Url", "345;" + pluginServerRule.url("/bother.jar")); 172 172 }}; 173 173 final PluginServer pluginServer = new PluginServer(
Note:
See TracChangeset
for help on using the changeset viewer.