RFR: 8375712: Convert java/lang/runtime tests to use JUnit [v3]

Chen Liang liach at openjdk.org
Fri Jan 23 11:18:46 UTC 2026


On Fri, 23 Jan 2026 09:41:58 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

>> 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

Marked as reviewed by liach (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/29350#pullrequestreview-3697019574


More information about the core-libs-dev mailing list