Integrated: 8370122: jpackage test lib improvements
Alexey Semenyuk
asemenyuk at openjdk.org
Wed Oct 22 02:44:18 UTC 2025
On Fri, 17 Oct 2025 17:42:10 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:
> Assorted updates to jpackage test lib:
>
> - Use `--release 11` javac option to compile test app. This allows custom runtimes created from older JDKs to be used. Using external runtimes allows to avoid jpackage running jlink in every test and saves time in local tests. With this change, creating a single stub runtime and using it with jpackage tests across multiple releases is possible.
> - Add "JUnitUtils" helper.
> - Add "ObjectMapper" class that converts a given object into a property map (`Map<String, Object>`). Handy to create a dump of object hierarchies.
> - Add "ConfigurationTarget" class to simplify applying the same initializers when testing app image and native package bundling.
> - Fix "AppImagePackageTest" test to make it produce a valid macOS bundle to leverage the default verification of jpackage output in the jpackage test lib.
> - Add test cases for the main/additional launcher descriptions to AddLauncherTest test.
> - Add validation of the "Comment" key value in Linux .desktop files.
This pull request has now been integrated.
Changeset: 94c0611b
Author: Alexey Semenyuk <asemenyuk at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/94c0611b9534f74b41b1f513f5c9ea96f41f83af
Stats: 2312 lines in 24 files changed: 2216 ins; 27 del; 69 mod
8370122: jpackage test lib improvements
Reviewed-by: almatvee
-------------
PR: https://git.openjdk.org/jdk/pull/27872
More information about the core-libs-dev
mailing list