Integrated: 8378163: test/jdk/java/net/httpclient/*.java: convert tests that use ITestContext to JUnit
Daniel Fuchs
dfuchs at openjdk.org
Fri Feb 20 17:24:57 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.
This pull request has now been integrated.
Changeset: c1f8209c
Author: Daniel Fuchs <dfuchs at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/c1f8209cb2b0c3c959623d6002bf60566a24eac8
Stats: 1336 lines in 19 files changed: 331 ins; 350 del; 655 mod
8378163: test/jdk/java/net/httpclient/*.java: convert tests that use ITestContext to JUnit
Reviewed-by: vyazici
-------------
PR: https://git.openjdk.org/jdk/pull/29786
More information about the net-dev
mailing list