test/jdk/tools/jpackage/windows/WinDirChooserTest.java
branchJDK-8200758-branch
changeset 58416 f09bf58c1f17
parent 58301 e0efb29609bd
child 58761 88e2753a2334
equal deleted inserted replaced
58415:73f8e557549a 58416:f09bf58c1f17
    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.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 
    27 
    28 /**
    28 /**
    29  * Test --win-dir-chooser parameter. Output of the test should be
    29  * Test --win-dir-chooser parameter. Output of the test should be
    35 
    35 
    36 /*
    36 /*
    37  * @test
    37  * @test
    38  * @summary jpackage with --win-dir-chooser
    38  * @summary jpackage with --win-dir-chooser
    39  * @library ../helpers
    39  * @library ../helpers
       
    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 WinDirChooserTest
    43  * @run main/othervm/timeout=360 -Xmx512m WinDirChooserTest
    43  */
    44  */
    44 
    45 
    45 public class WinDirChooserTest {
    46 public class WinDirChooserTest {
    46     public static void main(String[] args) {
    47     public static void main(String[] args) {
    47         Test.run(args, () -> {
    48         TKit.run(args, () -> {
    48             new PackageTest()
    49             new PackageTest()
    49             .forTypes(PackageType.WINDOWS)
    50             .forTypes(PackageType.WINDOWS)
    50             .configureHelloApp()
    51             .configureHelloApp()
    51             .addInitializer(cmd -> cmd.addArgument("--win-dir-chooser")).run();
    52             .addInitializer(cmd -> cmd.addArgument("--win-dir-chooser")).run();
    52         });
    53         });