Changeset 17129 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2020-10-08T23:25:56+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java
r16913 r17129 21 21 import java.util.stream.Collectors; 22 22 23 import org.apache.commons.lang3.exception.ExceptionUtils;24 23 import org.junit.BeforeClass; 25 24 import org.junit.ClassRule; … … 73 72 74 73 Map<String, Throwable> loadingExceptions = PluginHandler.pluginLoadingExceptions.entrySet().stream() 75 .filter(e -> !( ExceptionUtils.getRootCause(e.getValue()) instanceof HeadlessException))76 .collect(Collectors.toMap(e -> e.getKey(), e -> ExceptionUtils.getRootCause(e.getValue())));74 .filter(e -> !(Utils.getRootCause(e.getValue()) instanceof HeadlessException)) 75 .collect(Collectors.toMap(e -> e.getKey(), e -> Utils.getRootCause(e.getValue()))); 77 76 78 77 List<PluginInformation> loadedPlugins = PluginHandler.getPlugins(); … … 130 129 assertTrue(restartable.parallelStream().noneMatch(info -> PluginHandler.getPlugins().contains(info))); 131 130 } catch (Exception | LinkageError t) { 132 Throwable root = ExceptionUtils.getRootCause(t);131 Throwable root = Utils.getRootCause(t); 133 132 root.printStackTrace(); 134 133 noRestartExceptions.put(findFaultyPlugin(loadedPlugins, root), root); … … 212 211 consumer.accept(layer); 213 212 } catch (Exception | LinkageError t) { 214 Throwable root = ExceptionUtils.getRootCause(t);213 Throwable root = Utils.getRootCause(t); 215 214 root.printStackTrace(); 216 215 layerExceptions.put(findFaultyPlugin(loadedPlugins, root), root);
Note:
See TracChangeset
for help on using the changeset viewer.