test/jdk/tools/jpackage/windows/WinPerUserInstallTest.java
branchJDK-8200758-branch
changeset 58301 e0efb29609bd
parent 58113 885b0543f6e4
child 58416 f09bf58c1f17
equal deleted inserted replaced
58172:bf06a1d3aef6 58301:e0efb29609bd
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
       
    24 import jdk.jpackage.test.Test;
    24 import jdk.jpackage.test.PackageTest;
    25 import jdk.jpackage.test.PackageTest;
    25 import jdk.jpackage.test.PackageType;
    26 import jdk.jpackage.test.PackageType;
    26 
    27 
    27 /**
    28 /**
    28  * Test --win-per-user-install, --win-menu, --win-menu-group parameters.
    29  * Test --win-per-user-install, --win-menu, --win-menu-group parameters.
    37  * @test
    38  * @test
    38  * @summary jpackage with --win-per-user-install, --win-menu, --win-menu-group
    39  * @summary jpackage with --win-per-user-install, --win-menu, --win-menu-group
    39  * @library ../helpers
    40  * @library ../helpers
    40  * @requires (os.family == "windows")
    41  * @requires (os.family == "windows")
    41  * @modules jdk.jpackage/jdk.jpackage.internal
    42  * @modules jdk.jpackage/jdk.jpackage.internal
    42  * @run main/othervm -Xmx512m WinPerUserInstallTest
    43  * @run main/othervm/timeout=360 -Xmx512m WinPerUserInstallTest
    43  */
    44  */
    44 
    45 
    45 public class WinPerUserInstallTest {
    46 public class WinPerUserInstallTest {
    46     public static void main(String[] args) {
    47     public static void main(String[] args) {
    47         new PackageTest()
    48         Test.run(args, () -> {
    48         .forTypes(PackageType.WINDOWS)
    49             new PackageTest()
    49         .configureHelloApp()
    50             .forTypes(PackageType.WINDOWS)
    50         .addInitializer(cmd -> cmd.addArguments(
    51             .configureHelloApp()
    51                 "--win-menu",
    52             .addInitializer(cmd -> cmd.addArguments(
    52                 "--win-menu-group", "WinPerUserInstallTest_MenuGroup",
    53                     "--win-menu",
    53                 "--win-per-user-install"))
    54                     "--win-menu-group", "WinPerUserInstallTest_MenuGroup",
    54         .run();
    55                     "--win-per-user-install"))
       
    56             .run();
       
    57         });
    55     }
    58     }
    56 }
    59 }