RFR: 8373893: Refactor networking http server tests to use JUnit [v5]
Daniel Jeliński
djelinski at openjdk.org
Wed Dec 31 09:12:55 UTC 2025
On Wed, 31 Dec 2025 08:53:45 GMT, Michael McMahon <michaelm at openjdk.org> wrote:
>> test/jdk/com/sun/net/httpserver/HeadersTest.java line 162:
>>
>>> 160: }
>>> 161:
>>> 162: public static Object[][] responseHeaders() {
>>
>> I assume this could be return `Stream<Arguments>` instead of `Object[][]`.
>
> That pattern is very common across many of these tests (62 sites). I can change them, but I wonder how much improvement like this is within the scope of this conversion effort.
It could, but I'd let the next person handle that. JUnit can handle object arrays just fine.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28908#discussion_r2655059285
More information about the net-dev
mailing list