equal
deleted
inserted
replaced
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-menu parameter. Output of the test should be WinMenuTest-1.0.exe |
30 * Test --win-menu parameter. Output of the test should be WinMenuTest-1.0.exe |
30 * installer. The output installer should provide the same functionality as the |
31 * installer. The output installer should provide the same functionality as the |
31 * default installer (see description of the default installer in |
32 * default installer (see description of the default installer in |
37 * @summary jpackage with --win-menu |
38 * @summary jpackage with --win-menu |
38 * @library ../helpers |
39 * @library ../helpers |
39 * @build jdk.jpackage.test.* |
40 * @build jdk.jpackage.test.* |
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/timeout=360 -Xmx512m WinMenuTest |
43 * @compile WinMenuTest.java |
|
44 * @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main |
|
45 * --jpt-run=WinMenuTest |
43 */ |
46 */ |
44 |
47 |
45 public class WinMenuTest { |
48 public class WinMenuTest { |
46 public static void main(String[] args) { |
49 @Test |
47 TKit.run(args, () -> { |
50 public static void test() { |
48 new PackageTest() |
51 new PackageTest() |
49 .forTypes(PackageType.WINDOWS) |
52 .forTypes(PackageType.WINDOWS) |
50 .configureHelloApp() |
53 .configureHelloApp() |
51 .addInitializer(cmd -> cmd.addArgument("--win-menu")).run(); |
54 .addInitializer(cmd -> cmd.addArgument("--win-menu")).run(); |
52 }); |
|
53 } |
55 } |
54 } |
56 } |