RFR: 8373893: Refactor networking http server tests to use JUnit

Alan Bateman alanb at openjdk.org
Tue Dec 23 08:46:03 UTC 2025


On Thu, 18 Dec 2025 21:08:02 GMT, Michael McMahon <michaelm at openjdk.org> wrote:

> Hi,
> 
> This is an update to the httpserver networking tests to change the usage of testng to junit.
> 
> Thanks,
> Michael

test/jdk/com/sun/net/httpserver/UnmodifiableHeadersTest.java line 72:

> 70:     }
> 71: 
> 72:     public Object[][] headers() {

Could this be changed to return `Stream<Headers>`? Also if method source is changed to be a static method then would it remove the need to use TestInstance.Lifecycle.PER_CLASS?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28908#discussion_r2642411339


More information about the net-dev mailing list