test/jdk/tools/jpackage/helpers/jdk/jpackage/test/LinuxHelper.java
branchJDK-8200758-branch
changeset 58648 3bf53ffa9ae7
parent 58417 67ffaf3a2b75
child 58762 0fe62353385b
equal deleted inserted replaced
58647:2c43b89b1679 58648:3bf53ffa9ae7
   198                         "Check installed size of [%s] package in KB is not zero",
   198                         "Check installed size of [%s] package in KB is not zero",
   199                         packageName));
   199                         packageName));
   200 
   200 
   201         final boolean checkPrerequisites;
   201         final boolean checkPrerequisites;
   202         if (cmd.isRuntime()) {
   202         if (cmd.isRuntime()) {
   203             Path runtimeDir = cmd.appRuntimeInstallationDirectory();
   203             Path runtimeDir = cmd.appRuntimeDirectory();
   204             Set<Path> expectedCriticalRuntimePaths = CRITICAL_RUNTIME_FILES.stream().map(
   204             Set<Path> expectedCriticalRuntimePaths = CRITICAL_RUNTIME_FILES.stream().map(
   205                     runtimeDir::resolve).collect(Collectors.toSet());
   205                     runtimeDir::resolve).collect(Collectors.toSet());
   206             Set<Path> actualCriticalRuntimePaths = getPackageFiles(cmd).filter(
   206             Set<Path> actualCriticalRuntimePaths = getPackageFiles(cmd).filter(
   207                     expectedCriticalRuntimePaths::contains).collect(
   207                     expectedCriticalRuntimePaths::contains).collect(
   208                             Collectors.toSet());
   208                             Collectors.toSet());
   337                                 v -> v.startsWith("Exec=")).map(
   337                                 v -> v.startsWith("Exec=")).map(
   338                                 v -> v.split("=", 2)[1]).findFirst().orElseThrow();
   338                                 v -> v.split("=", 2)[1]).findFirst().orElseThrow();
   339 
   339 
   340                 TKit.trace(String.format("Done"));
   340                 TKit.trace(String.format("Done"));
   341 
   341 
   342                 TKit.assertEquals(cmd.launcherInstallationPath().toString(),
   342                 TKit.assertEquals(cmd.appLauncherPath().toString(),
   343                         mimeHandler, String.format(
   343                         mimeHandler, String.format(
   344                                 "Check mime type handler is the main application launcher"));
   344                                 "Check mime type handler is the main application launcher"));
   345 
   345 
   346             });
   346             });
   347         });
   347         });