RFR: 8377116: Refactor java/util/zip TestNG tests to JUnit
Justin Lu
jlu at openjdk.org
Tue Feb 3 22:16:35 UTC 2026
This PR consists of a conversion for the java/util/zip TestNG tests to JUnit. Changes are mainly automated. https://github.com/openjdk/jdk/commit/1aeb8a634b8f255853516015f4b39bd79dd94090 is required to resolve a failure since JUnit parameterized tests automatically close arguments that implement `AutoCloseable`.
Test stats before:
Framework-based tests: 274 = 107 TestNG + 167 JUnit
Test stats after:
Framework-based tests: 274 = 0 TestNG + 274 JUnit
-------------
Commit messages:
- Update copyright years
- Drop TestInstance.Lifecycle.PER_CLASS for default
- Clean up imports
- Modernize object[][]
- Resolve auto close issue for CloseInflaterDeflaterTest.testZipCloseEntry
- Apply automated conversion
Changes: https://git.openjdk.org/jdk/pull/29552/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29552&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8377116
Stats: 351 lines in 10 files changed: 74 ins; 41 del; 236 mod
Patch: https://git.openjdk.org/jdk/pull/29552.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29552/head:pull/29552
PR: https://git.openjdk.org/jdk/pull/29552
More information about the core-libs-dev
mailing list