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