test/jdk/tools/jpackage/helpers/jdk/jpackage/test/LinuxHelper.java
branchJDK-8200758-branch
changeset 58762 0fe62353385b
parent 58648 3bf53ffa9ae7
child 58791 fca9cb5f4953
equal deleted inserted replaced
58761:88e2753a2334 58762:0fe62353385b
   253     private static void addDebBundleDesktopIntegrationVerifier(PackageTest test,
   253     private static void addDebBundleDesktopIntegrationVerifier(PackageTest test,
   254             boolean integrated) {
   254             boolean integrated) {
   255         Function<List<String>, String> verifier = (lines) -> {
   255         Function<List<String>, String> verifier = (lines) -> {
   256             // Lookup for xdg commands
   256             // Lookup for xdg commands
   257             return lines.stream().filter(line -> {
   257             return lines.stream().filter(line -> {
   258                 Set<String> words = Set.of(line.split("\\s+"));
   258                 Set<String> words = Stream.of(line.split("\\s+")).collect(
       
   259                         Collectors.toSet());
   259                 return words.contains("xdg-desktop-menu") || words.contains(
   260                 return words.contains("xdg-desktop-menu") || words.contains(
   260                         "xdg-mime") || words.contains("xdg-icon-resource");
   261                         "xdg-mime") || words.contains("xdg-icon-resource");
   261             }).findFirst().orElse(null);
   262             }).findFirst().orElse(null);
   262         };
   263         };
   263 
   264