test/jdk/tools/jpackage/windows/WinMenuTest.java
branchJDK-8200758-branch
changeset 58301 e0efb29609bd
parent 58116 93b8c1305de2
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-menu parameter. Output of the test should be WinMenuTest-1.0.exe
    29  * Test --win-menu parameter. Output of the test should be WinMenuTest-1.0.exe
    35  * @test
    36  * @test
    36  * @summary jpackage with --win-menu
    37  * @summary jpackage with --win-menu
    37  * @library ../helpers
    38  * @library ../helpers
    38  * @requires (os.family == "windows")
    39  * @requires (os.family == "windows")
    39  * @modules jdk.jpackage/jdk.jpackage.internal
    40  * @modules jdk.jpackage/jdk.jpackage.internal
    40  * @run main/othervm -Xmx512m WinMenuTest
    41  * @run main/othervm/timeout=360 -Xmx512m WinMenuTest
    41  */
    42  */
    42 
    43 
    43 public class WinMenuTest {
    44 public class WinMenuTest {
    44     public static void main(String[] args) {
    45     public static void main(String[] args) {
    45         new PackageTest()
    46         Test.run(args, () -> {
    46         .forTypes(PackageType.WINDOWS)
    47             new PackageTest()
    47         .configureHelloApp()
    48             .forTypes(PackageType.WINDOWS)
    48         .addInitializer(cmd -> cmd.addArgument("--win-menu")).run();
    49             .configureHelloApp()
       
    50             .addInitializer(cmd -> cmd.addArgument("--win-menu")).run();
       
    51         });
    49     }
    52     }
    50 }
    53 }