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 /** |
29 /** |
47 * @modules jdk.jpackage/jdk.jpackage.internal |
48 * @modules jdk.jpackage/jdk.jpackage.internal |
48 * @run main/othervm/timeout=360 -Xmx512m BundleNameTest |
49 * @run main/othervm/timeout=360 -Xmx512m BundleNameTest |
49 */ |
50 */ |
50 public class BundleNameTest { |
51 public class BundleNameTest { |
51 |
52 |
52 public static void main(String[] args) throws Exception { |
53 public static void main(String[] args) { |
53 final String PACKAGE_NAME = "quickbrownfox2"; |
54 final String PACKAGE_NAME = "quickbrownfox2"; |
54 |
55 |
55 new PackageTest() |
56 Test.run(args, () -> { |
56 .forTypes(PackageType.LINUX) |
57 new PackageTest() |
57 .configureHelloApp() |
58 .forTypes(PackageType.LINUX) |
58 .addInitializer(cmd -> { |
59 .configureHelloApp() |
59 cmd.addArguments("--linux-package-name", PACKAGE_NAME); |
60 .addInitializer(cmd -> { |
60 }) |
61 cmd.addArguments("--linux-package-name", PACKAGE_NAME); |
61 .forTypes(PackageType.LINUX_DEB) |
62 }) |
62 .addBundlePropertyVerifier("Package", PACKAGE_NAME) |
63 .forTypes(PackageType.LINUX_DEB) |
63 .forTypes(PackageType.LINUX_RPM) |
64 .addBundlePropertyVerifier("Package", PACKAGE_NAME) |
64 .addBundlePropertyVerifier("Name", PACKAGE_NAME) |
65 .forTypes(PackageType.LINUX_RPM) |
65 .run(); |
66 .addBundlePropertyVerifier("Name", PACKAGE_NAME) |
|
67 .run(); |
|
68 }); |
66 } |
69 } |
67 } |
70 } |