Changeset 13993 in josm for trunk/test
- Timestamp:
- 2018-07-01T14:59:40+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java
r13793 r13993 55 55 .collect(Collectors.toMap(e -> e.getKey(), e -> ExceptionUtils.getRootCause(e.getValue()))); 56 56 57 List<PluginInformation> loadedPlugins = PluginHandler.getPlugins(); 58 Map<String, List<String>> invalidManifestEntries = loadedPlugins.stream().filter(pi -> !pi.invalidManifestEntries.isEmpty()) 59 .collect(Collectors.toMap(pi -> pi.name, pi -> pi.invalidManifestEntries)); 60 57 61 // Add/remove layers twice to test basic plugin good behaviour 58 62 Map<String, Throwable> layerExceptions = new HashMap<>(); 59 List<PluginInformation> loadedPlugins = PluginHandler.getPlugins();60 63 for (int i = 0; i < 2; i++) { 61 64 OsmDataLayer layer = new OsmDataLayer(new DataSet(), "Layer "+i, null); … … 69 72 } 70 73 74 MapUtils.debugPrint(System.out, null, invalidManifestEntries); 71 75 MapUtils.debugPrint(System.out, null, loadingExceptions); 72 76 MapUtils.debugPrint(System.out, null, layerExceptions); 73 String msg = Arrays.toString(loadingExceptions.entrySet().toArray()) + '\n' + 77 String msg = Arrays.toString(invalidManifestEntries.entrySet().toArray()) + '\n' + 78 Arrays.toString(loadingExceptions.entrySet().toArray()) + '\n' + 74 79 Arrays.toString(layerExceptions.entrySet().toArray()); 75 assertTrue(msg, loadingExceptions.isEmpty() && layerExceptions.isEmpty());80 assertTrue(msg, invalidManifestEntries.isEmpty() && loadingExceptions.isEmpty() && layerExceptions.isEmpty()); 76 81 } 77 82
Note:
See TracChangeset
for help on using the changeset viewer.