< prev index next >

test/jdk/tools/jpackage/linux/MaintainerTest.java

Print this page

        

@@ -44,13 +44,14 @@
  * @modules jdk.jpackage/jdk.jpackage.internal
  * @run main/othervm/timeout=360 -Xmx512m MaintainerTest
  */
 public class MaintainerTest {
 
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) {
         final String MAINTAINER = "jpackage-test@java.com";
 
+        Test.run(args, () -> {
         new PackageTest().forTypes(PackageType.LINUX_DEB).configureHelloApp()
         .addInitializer(cmd -> {
             cmd.addArguments("--linux-deb-maintainer", MAINTAINER);
         })
         .addBundlePropertyVerifier("Maintainer", (propName, propValue) -> {

@@ -58,7 +59,8 @@
             Test.assertTrue(propValue.endsWith(lookupValue),
                     String.format("Check value of %s property [%s] ends with %s",
                             propName, propValue, lookupValue));
         })
         .run();
+        });
     }
 }
< prev index next >