RFR: 8378163: test/jdk/java/net/httpclient/*.java: convert tests that use ITestContext to JUnit

Daniel Fuchs dfuchs at openjdk.org
Thu Feb 19 14:33:44 UTC 2026


On Wed, 18 Feb 2026 12:20:49 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> This is a first step that converts all tests directly located in the test/jdk/java/net/httpclient directory and which depend on ITestContext (a TestNG API) to use JUnit instead. 
> 
> Usage of ITestContext is replaced by registering a TestWatcher which can make JUnit stop at the first failure.
> The proposed change is mostly mechanical - with the exception of SpecialHeadersTest which is now also testing HTTP/3.
> Some logging in a few of the tests has also been improved.
> 
> This is a test change only.

OK - I have removed the annotation. Not sure it's much better. A few minor corrections along the way too.

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

PR Comment: https://git.openjdk.org/jdk/pull/29786#issuecomment-3927646372


More information about the net-dev mailing list