Integrated: 8373869: Refactor java/net/httpclient/ThrowingPushPromises*.java tests to use JUnit5

Daniel Fuchs dfuchs at openjdk.org
Thu Dec 18 09:24:57 UTC 2025


On Wed, 17 Dec 2025 12:34:47 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> These test used to use the testng IContextTest API to stop tests after the first failure.
> Usage of IContextTest has been replaced with a TestWatcher that records the first failure and uses Assumptions to prevent further test execution.
> 
> This is similar to what was done for the `java/net/httpclient/ThrowingPublishers*.java` tests in https://github.com/openjdk/jdk/pull/28846 and for `java/net/httpclient/ThrowingSubscribers*.java` in https://github.com/openjdk/jdk/pull/28865

This pull request has now been integrated.

Changeset: e5ca7783
Author:    Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e5ca77838b9243321ed66afc2f460378d25add63
Stats:     158 lines in 8 files changed: 51 ins; 39 del; 68 mod

8373869: Refactor java/net/httpclient/ThrowingPushPromises*.java tests to use JUnit5

Reviewed-by: jpai

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

PR: https://git.openjdk.org/jdk/pull/28868


More information about the net-dev mailing list