RFR: 8375712: Convert java/lang/runtime tests to use JUnit [v3]
Jan Lahoda
jlahoda at openjdk.org
Fri Jan 23 09:41:58 UTC 2026
> This PR converts the tests under `test/jdk/java/lang/runtime/` to use JUnit. Mostly converted by the automatic conversion tool, but there's a manual tweak to use `assertThrows` instead of the current manual `try-catch`. Also one manual fix. The changes are in separate commits, which should help reviewing.
>
> Thanks!
Jan Lahoda has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains seven commits:
- Updating per review comments.
- Merge remote-tracking branch 'upstream/master' into upgrade-java-lang-runtime-to-junit
- Removing wrong @Test annotation.
- Using assertThrows instead of manual try-catch.
- 8375712: Convert java/lang/runtime tests to use JUnit
(automatic conversion)
- Cleanup.
- 8375119: SwitchBoostraps.enumSwitch does not throw an NPE when lookup is null in some cases
-------------
Changes: https://git.openjdk.org/jdk/pull/29350/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29350&range=02
Stats: 243 lines in 3 files changed: 33 ins; 101 del; 109 mod
Patch: https://git.openjdk.org/jdk/pull/29350.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29350/head:pull/29350
PR: https://git.openjdk.org/jdk/pull/29350
More information about the core-libs-dev
mailing list