Changeset 15717 in josm for trunk/test/unit
- Timestamp:
- 2020-01-18T14:14:01+01:00 (5 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTest.java
r14317 r15717 10 10 import java.util.Arrays; 11 11 import java.util.List; 12 import java.util.stream.Collectors; 13 import java.util.stream.Stream; 12 14 13 15 import javax.swing.JScrollPane; … … 24 26 import org.openstreetmap.josm.testutils.mockers.HelpAwareOptionPaneMocker; 25 27 import org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker; 26 import org.openstreetmap.josm.tools.Utils;27 28 28 import com.google.common.collect.ImmutableMap; 29 29 … … 70 70 final String old = System.getProperty("josm.plugins"); 71 71 try { 72 System.setProperty("josm.plugins", 73 Utils.join(",", PluginHandler.DEPRECATED_PLUGINS) + "," + 74 Utils.join(",", Arrays.asList(PluginHandler.UNMAINTAINED_PLUGINS))); 72 final String plugins = Stream.concat( 73 PluginHandler.DEPRECATED_PLUGINS.stream(), 74 PluginHandler.UNMAINTAINED_PLUGINS.stream() 75 ).map(String::valueOf).collect(Collectors.joining(",")); 76 System.setProperty("josm.plugins", plugins); 75 77 List<PluginInformation> list = PluginHandler.buildListOfPluginsToLoad(null, null); 76 78 assertNotNull(list);
Note:
See TracChangeset
for help on using the changeset viewer.