Changeset 19050 in josm for trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerMultiVersionTest.java
- Timestamp:
- 2024-04-22T20:59:26+02:00 (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerMultiVersionTest.java
r18870 r19050 91 91 @AssumeRevision("Revision: 7501\n") 92 92 @Test 93 void testUpdatePluginsOneMultiVersion( WireMockRuntimeInfo wireMockRuntimeInfo) throws Exception {93 void testUpdatePluginsOneMultiVersion() throws Exception { 94 94 TestUtils.assumeWorkingJMockit(); 95 95 96 96 final String quxNewerServePath = "/qux/newer.jar"; 97 final Map<String, String> attrOverrides = new HashMap< String, String>() {{97 final Map<String, String> attrOverrides = new HashMap<>() {{ 98 98 put("7500_Plugin-Url", "432;" + pluginServerRule.url(quxNewerServePath)); 99 99 put("7499_Plugin-Url", "346;" + pluginServerRule.url("/not/served.jar")); … … 104 104 new PluginServer.RemotePlugin(this.referenceQuxJarNewest, attrOverrides) 105 105 ); 106 final WireMockRuntimeInfo wireMockRuntimeInfo = pluginServerRule.getRuntimeInfo(); 106 107 pluginServer.applyToWireMockServer(wireMockRuntimeInfo); 107 108 // need to actually serve this older jar from somewhere … … 158 159 @AssumeRevision("Revision: 7000\n") 159 160 @Test 160 void testUpdatePluginsExistingVersionLatestPossible( WireMockRuntimeInfo wireMockRuntimeInfo) throws Exception {161 void testUpdatePluginsExistingVersionLatestPossible() throws Exception { 161 162 TestUtils.assumeWorkingJMockit(); 162 163 163 final Map<String, String> attrOverrides = new HashMap< String, String>() {{164 final Map<String, String> attrOverrides = new HashMap<>() {{ 164 165 put("7500_Plugin-Url", "432;" + pluginServerRule.url("/dont.jar")); 165 166 put("7499_Plugin-Url", "346;" + pluginServerRule.url("/even.jar")); … … 170 171 new PluginServer.RemotePlugin(this.referenceQuxJarNewest, attrOverrides) 171 172 ); 172 pluginServer.applyToWireMockServer( wireMockRuntimeInfo);173 pluginServer.applyToWireMockServer(pluginServerRule.getRuntimeInfo()); 173 174 Config.getPref().putList("plugins", Arrays.asList("qux_plugin", "baz_plugin")); 174 175
Note:
See TracChangeset
for help on using the changeset viewer.