test/jdk/tools/jpackage/share/AppImagePackageTest.java
branchJDK-8200758-branch
changeset 58416 f09bf58c1f17
parent 58415 73f8e557549a
child 58464 d82489644b15
--- a/test/jdk/tools/jpackage/share/AppImagePackageTest.java	Mon Sep 30 15:59:50 2019 -0400
+++ b/test/jdk/tools/jpackage/share/AppImagePackageTest.java	Mon Sep 30 19:11:19 2019 -0400
@@ -22,7 +22,7 @@
  */
 
 import java.nio.file.Path;
-import jdk.jpackage.test.Test;
+import jdk.jpackage.test.TKit;
 import jdk.jpackage.test.PackageTest;
 import jdk.jpackage.test.PackageType;
 import jdk.jpackage.test.JPackageCommand;
@@ -37,13 +37,14 @@
  * @test
  * @summary jpackage with --app-image
  * @library ../helpers
+ * @build jdk.jpackage.test.*
  * @modules jdk.jpackage/jdk.jpackage.internal
  * @run main/othervm/timeout=360 -Xmx512m AppImagePackageTest
  */
 public class AppImagePackageTest {
 
     public static void main(String[] args) {
-        Test.run(args, () -> {
+        TKit.run(args, () -> {
             Path appimageOutput = Path.of("appimage");
 
             JPackageCommand appImageCmd = JPackageCommand.helloAppImage()
@@ -64,7 +65,7 @@
                 }
 
                 cmd.addArguments("--app-image", appimageInput);
-                cmd.removeArgument("--input");
+                cmd.removeArgumentWithValue("--input");
             }).addBundleDesktopIntegrationVerifier(false).run();
         });
     }