RFR: 8373935: Migrate java/lang/invoke tests away from TestNG [v2]

Chen Liang liach at openjdk.org
Wed Dec 17 21:41:50 UTC 2025


> Refactor java/lang/invoke tests to use JUnit instead of TestNG.
> This is done by:
> 1. First a round of automatic conversion
> 2. Simplify exception handling tests
> 3. Replacing `assert` keyword and switching to better assertion APIs for equality etc.
> 4. Some other random cleanups, such as module status
> 
> Testing: java/lang/invoke on Linux-x64. I un-problemlisted the updated `java/lang/invoke/lambda/LambdaFileEncodingSerialization.java` too.

Chen Liang has updated the pull request incrementally with one additional commit since the last revision:

  Some omissions

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/28879/files
  - new: https://git.openjdk.org/jdk/pull/28879/files/ac47d48a..dfdb2de1

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=28879&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=28879&range=00-01

  Stats: 59 lines in 2 files changed: 2 ins; 11 del; 46 mod
  Patch: https://git.openjdk.org/jdk/pull/28879.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28879/head:pull/28879

PR: https://git.openjdk.org/jdk/pull/28879


More information about the core-libs-dev mailing list