Changeset 14153 in josm for trunk/test/unit/org/openstreetmap/josm/testutils/PluginServer.java
- Timestamp:
- 2018-08-13T02:18:54+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/testutils/PluginServer.java
r14052 r14153 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.testutils; 3 4 import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.options; 3 5 4 6 import java.io.File; … … 12 14 import java.util.stream.Collectors; 13 15 16 import org.junit.runner.Description; 17 import org.junit.runners.model.Statement; 14 18 import org.openstreetmap.josm.TestUtils; 15 19 import org.openstreetmap.josm.tools.Logging; 16 20 17 import org.junit.runner.Description; 18 import org.junit.runners.model.Statement; 19 20 import com.google.common.collect.ImmutableList; 21 21 import com.github.tomakehurst.wiremock.WireMockServer; 22 22 import com.github.tomakehurst.wiremock.client.MappingBuilder; 23 23 import com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder; … … 25 25 import com.github.tomakehurst.wiremock.core.Options; 26 26 import com.github.tomakehurst.wiremock.junit.WireMockRule; 27 import com.github.tomakehurst.wiremock.WireMockServer; 28 29 import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.options; 27 import com.google.common.collect.ImmutableList; 30 28 31 29 public class PluginServer { … … 75 73 76 74 public String getRemotePluginsListManifestSection() { 77 final Map<String, String> attrs = new HashMap< String, String>();75 final Map<String, String> attrs = new HashMap<>(); 78 76 JarFile jarFile = null; 79 77 … … 239 237 return super.apply(new Statement() { 240 238 @Override 241 @SuppressWarnings("unchecked")242 239 public void evaluate() throws Throwable { 243 240 PluginServer.this.applyToWireMockServer(PluginServerRule.this);
Note:
See TracChangeset
for help on using the changeset viewer.