39 /* 40 * @test 41 * @summary jpackage with --linux-deb-maintainer 42 * @library ../helpers 43 * @key jpackagePlatformPackage 44 * @build jdk.jpackage.test.* 45 * @requires (os.family == "linux") 46 * @modules jdk.incubator.jpackage/jdk.incubator.jpackage.internal 47 * @run main/othervm/timeout=360 -Xmx512m MaintainerTest 48 */ 49 public class MaintainerTest { 50 51 public static void main(String[] args) { 52 final String MAINTAINER = "jpackage-test@java.com"; 53 54 TKit.run(args, () -> { 55 new PackageTest().forTypes(PackageType.LINUX_DEB).configureHelloApp() 56 .addInitializer(cmd -> { 57 cmd.addArguments("--linux-deb-maintainer", MAINTAINER); 58 }) 59 .addBundlePropertyVerifier("Maintainer", (propName, propValue) -> { 60 String lookupValue = "<" + MAINTAINER + ">"; 61 TKit.assertTrue(propValue.endsWith(lookupValue), 62 String.format("Check value of %s property [%s] ends with %s", 63 propName, propValue, lookupValue)); 64 }) 65 .run(); 66 }); 67 } 68 } | 39 /* 40 * @test 41 * @summary jpackage with --linux-deb-maintainer 42 * @library ../helpers 43 * @key jpackagePlatformPackage 44 * @build jdk.jpackage.test.* 45 * @requires (os.family == "linux") 46 * @modules jdk.incubator.jpackage/jdk.incubator.jpackage.internal 47 * @run main/othervm/timeout=360 -Xmx512m MaintainerTest 48 */ 49 public class MaintainerTest { 50 51 public static void main(String[] args) { 52 final String MAINTAINER = "jpackage-test@java.com"; 53 54 TKit.run(args, () -> { 55 new PackageTest().forTypes(PackageType.LINUX_DEB).configureHelloApp() 56 .addInitializer(cmd -> { 57 cmd.addArguments("--linux-deb-maintainer", MAINTAINER); 58 }) 59 .addBundlePropertyVerifier("Maintainer", value -> { 60 String lookupValue = "<" + MAINTAINER + ">"; 61 return value.endsWith(lookupValue); 62 }, "ends with") 63 .run(); 64 }); 65 } 66 } |