test/jdk/tools/jpackage/share/SimplePackageTest.java
branchJDK-8200758-branch
changeset 58648 3bf53ffa9ae7
parent 58416 f09bf58c1f17
child 58761 88e2753a2334
equal deleted inserted replaced
58647:2c43b89b1679 58648:3bf53ffa9ae7
    21  * questions.
    21  * questions.
    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.Annotations.Test;
    26 
    27 
    27 /**
    28 /**
    28  * Simple platform specific packaging test. Output of the test should be
    29  * Simple platform specific packaging test. Output of the test should be
    29  * simplepackagetest*.* package bundle.
    30  * simplepackagetest*.* package bundle.
    30  *
    31  *
    41  * @test
    42  * @test
    42  * @summary Simple jpackage command run
    43  * @summary Simple jpackage command run
    43  * @library ../helpers
    44  * @library ../helpers
    44  * @build jdk.jpackage.test.*
    45  * @build jdk.jpackage.test.*
    45  * @modules jdk.jpackage/jdk.jpackage.internal
    46  * @modules jdk.jpackage/jdk.jpackage.internal
    46  * @run main/othervm/timeout=360 -Xmx512m SimplePackageTest
    47  * @compile SimplePackageTest.java
       
    48  * @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
       
    49  *  --jpt-run=SimplePackageTest
    47  */
    50  */
    48 public class SimplePackageTest {
    51 public class SimplePackageTest {
    49 
    52 
    50     public static void main(String[] args) {
    53     @Test
    51         TKit.run(args, () -> {
    54     public static void test() {
    52             new PackageTest()
    55         new PackageTest()
    53             .configureHelloApp()
    56         .configureHelloApp()
    54             .addBundleDesktopIntegrationVerifier(false)
    57         .addBundleDesktopIntegrationVerifier(false)
    55             .run();
    58         .run();
    56         });
       
    57     }
    59     }
    58 }
    60 }