RFR: 8378111: Migrate java/util/jar tests to JUnit
Naoto Sato
naoto at openjdk.org
Thu Feb 19 22:25:57 UTC 2026
On Thu, 19 Feb 2026 20:18:17 GMT, Justin Lu <jlu at openjdk.org> wrote:
> This PR migrates the java/util/jar tests to use _JUnit_.
>
> https://github.com/openjdk/jdk/commit/afe0aeee746bccbbe4bc6c9a8cd2302228ecc2f6 includes changes for _testNG_ based tests.
> https://github.com/openjdk/jdk/commit/c5a7f75840f96fa77ec3ed7faa713990adb84de6 includes changes for `main` based tests.
>
> Before: Framework-based tests: 125 = 125 TestNG + 0 JUnit.
> After: Framework-based tests: 174 = 0 TestNG + 174 JUnit
test/jdk/java/util/jar/JarFile/TurkCert.java line 46:
> 44: static void setLocale() {
> 45: Locale.setDefault(Locale.of("tr", "TR"));
> 46: }
Just a drive-by comment. Since the test is now running in othervm mode, we can eliminate this by running the vm with `-Duser.language=tr -Duser.country=TR`
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29828#discussion_r2830450286
More information about the core-libs-dev
mailing list