< prev index next >
test/jdk/tools/jpackage/linux/LicenseTypeTest.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;
/**
@@ -42,16 +43,18 @@
* @modules jdk.jpackage/jdk.jpackage.internal
* @run main/othervm/timeout=360 -Xmx512m LicenseTypeTest
*/
public class LicenseTypeTest {
- public static void main(String[] args) throws Exception {
+ public static void main(String[] args) {
final String LICENSE_TYPE = "JP_LICENSE_TYPE";
+ Test.run(args, () -> {
new PackageTest().forTypes(PackageType.LINUX_RPM).configureHelloApp()
.addInitializer(cmd -> {
cmd.addArguments("--linux-rpm-license-type", LICENSE_TYPE);
})
.addBundlePropertyVerifier("License", LICENSE_TYPE)
.run();
+ });
}
}
< prev index next >