diff -r bf06a1d3aef6 -r e0efb29609bd test/jdk/tools/jpackage/helpers/jdk/jpackage/test/WindowsHelper.java --- a/test/jdk/tools/jpackage/helpers/jdk/jpackage/test/WindowsHelper.java Mon Sep 16 19:24:32 2019 -0400 +++ b/test/jdk/tools/jpackage/helpers/jdk/jpackage/test/WindowsHelper.java Tue Sep 24 13:41:16 2019 -0400 @@ -97,7 +97,7 @@ private void verifyStartMenuShortcut() { boolean appInstalled = cmd.launcherInstallationPath().toFile().exists(); - if (cmd.hasArgument("--win-menu") || !cmd.hasArgument("--win-shortcut")) { + if (cmd.hasArgument("--win-menu")) { if (isUserLocalInstall(cmd)) { verifyUserLocalStartMenuShortcut(appInstalled); verifySystemStartMenuShortcut(false); @@ -129,12 +129,11 @@ } private void verifyFileAssociationsRegistry() { - Path faFile = cmd.getArgumentValue("--file-associations", - () -> (Path) null, Path::of); - if (faFile == null) { - return; - } + Stream.of(cmd.getAllArgumentValues("--file-associations")).map( + Path::of).forEach(this::verifyFileAssociationsRegistry); + } + private void verifyFileAssociationsRegistry(Path faFile) { boolean appInstalled = cmd.launcherInstallationPath().toFile().exists(); try { Test.trace(String.format(