RFR: 8378111: Migrate java/util/jar tests to JUnit [v3]

SendaoYan syan at openjdk.org
Wed Feb 25 11:01:40 UTC 2026


On Mon, 23 Feb 2026 22:56:31 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
>
> Justin Lu has updated the pull request incrementally with one additional commit since the last revision:
> 
>   get rid of inheritance + zip -> ZIP

test/jdk/java/util/jar/JarFile/mrjar/MultiReleaseJarHttpProperties.java line 72:

> 70: 
> 71:     @BeforeAll
> 72:     public void initialize() throws Exception {

Maybe we should add `static` modifier for @BeforeAll and @AfterAll method

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29828#discussion_r2851500968


More information about the core-libs-dev mailing list