< prev index next >

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

Print this page

        

@@ -19,10 +19,11 @@
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
+import jdk.jpackage.test.Test;
 import jdk.jpackage.test.PackageTest;
 import jdk.jpackage.test.PackageType;
 
 
 /**

@@ -54,18 +55,19 @@
     // preceeding the main package name.
     // This is needed to make Bash script batch installing/uninstalling packages
     // produced by jtreg tests install/uninstall packages in the right order.
     static class APackageDepsTestPrereq {
 
-        public static void main(String[] args) throws Exception {
+        public static void main(String[] args) {
             new PackageTest().forTypes(PackageType.LINUX).configureHelloApp().run();
         }
     }
 
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) {
         final String PREREQ_PACKAGE_NAME = "apackagedepstestprereq";
 
+        Test.run(args, () -> {
         APackageDepsTestPrereq.main(args);
 
         new PackageTest()
         .forTypes(PackageType.LINUX)
         .configureHelloApp()

@@ -75,7 +77,8 @@
         .forTypes(PackageType.LINUX_DEB)
         .addBundlePropertyVerifier("Depends", PREREQ_PACKAGE_NAME)
         .forTypes(PackageType.LINUX_RPM)
         .addBundlePropertyVerifier("Requires", PREREQ_PACKAGE_NAME)
         .run();
+        });
     }
 }
< prev index next >