RFR: 8375231: Refactor util/ServiceLoader tests to use JUnit [v3]

Alan Bateman alanb at openjdk.org
Wed Jan 14 19:39:22 UTC 2026


On Wed, 14 Jan 2026 18:03:53 GMT, Justin Lu <jlu at openjdk.org> wrote:

>> This PR converts the TestNG tests in _util/ServiceLoader_ (7), _util/StringJoiner_ (3), and _util/Vector_ (1) to JUnit.
>> The first commit is from the automated tool, the rest are manual changes done after.
>> 
>> Before
>> ServiceLoader: Framework-based tests: 62 = 62 TestNG + 0 JUnit
>> StringJoiner: Framework-based tests: 32 = 32 TestNG + 0 JUnit
>> Vector: Framework-based tests: 9 = 9 TestNG + 0 JUnit
>> 
>> After
>> ServiceLoader: Framework-based tests: 62 = 0 TestNG + 62 JUnit
>> StringJoiner: Framework-based tests: 32 = 0 TestNG + 32 JUnit
>> Vector: Framework-based tests: 9 = 0 TestNG + 9 JUnit
>
> Justin Lu has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Clean up data providers
>  - Narrow down the scope of where the exception may occur

Marked as reviewed by alanb (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/29210#pullrequestreview-3662427971


More information about the core-libs-dev mailing list