test/jdk/tools/jpackage/windows/WinPerUserInstallTest.java
branchJDK-8200758-branch
changeset 58648 3bf53ffa9ae7
parent 58416 f09bf58c1f17
child 58761 88e2753a2334
equal deleted inserted replaced
58647:2c43b89b1679 58648:3bf53ffa9ae7
    22  */
    22  */
    23 
    23 
    24 import jdk.jpackage.test.TKit;
    24 import jdk.jpackage.test.TKit;
    25 import jdk.jpackage.test.PackageTest;
    25 import jdk.jpackage.test.PackageTest;
    26 import jdk.jpackage.test.PackageType;
    26 import jdk.jpackage.test.PackageType;
       
    27 import jdk.jpackage.test.Annotations.Test;
    27 
    28 
    28 /**
    29 /**
    29  * Test --win-per-user-install, --win-menu, --win-menu-group parameters.
    30  * Test --win-per-user-install, --win-menu, --win-menu-group parameters.
    30  * Output of the test should be WinPerUserInstallTest-1.0.exe installer. The
    31  * Output of the test should be WinPerUserInstallTest-1.0.exe installer. The
    31  * output installer should provide the same functionality as the default
    32  * output installer should provide the same functionality as the default
    39  * @summary jpackage with --win-per-user-install, --win-menu, --win-menu-group
    40  * @summary jpackage with --win-per-user-install, --win-menu, --win-menu-group
    40  * @library ../helpers
    41  * @library ../helpers
    41  * @build jdk.jpackage.test.*
    42  * @build jdk.jpackage.test.*
    42  * @requires (os.family == "windows")
    43  * @requires (os.family == "windows")
    43  * @modules jdk.jpackage/jdk.jpackage.internal
    44  * @modules jdk.jpackage/jdk.jpackage.internal
    44  * @run main/othervm/timeout=360 -Xmx512m WinPerUserInstallTest
    45  * @compile WinPerUserInstallTest.java
       
    46  * @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
       
    47  *  --jpt-run=WinPerUserInstallTest
    45  */
    48  */
    46 
    49 
    47 public class WinPerUserInstallTest {
    50 public class WinPerUserInstallTest {
    48     public static void main(String[] args) {
    51     @Test
    49         TKit.run(args, () -> {
    52     public static void test() {
    50             new PackageTest()
    53         new PackageTest()
    51             .forTypes(PackageType.WINDOWS)
    54         .forTypes(PackageType.WINDOWS)
    52             .configureHelloApp()
    55         .configureHelloApp()
    53             .addInitializer(cmd -> cmd.addArguments(
    56         .addInitializer(cmd -> cmd.addArguments(
    54                     "--win-menu",
    57                 "--win-menu",
    55                     "--win-menu-group", "WinPerUserInstallTest_MenuGroup",
    58                 "--win-menu-group", "WinPerUserInstallTest_MenuGroup",
    56                     "--win-per-user-install"))
    59                 "--win-per-user-install"))
    57             .run();
    60         .run();
    58         });
       
    59     }
    61     }
    60 }
    62 }