RFR: 8373866: Refactor java/net/httpclient/ThrowingSubscribers*.java tests to use JUnit5 [v2]

Daniel Fuchs dfuchs at openjdk.org
Wed Dec 17 12:04:33 UTC 2025


> 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

Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:

  small abstract class cleanup

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/28865/files
  - new: https://git.openjdk.org/jdk/pull/28865/files/80abd2f9..4b0c6cc6

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=28865&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=28865&range=00-01

  Stats: 7 lines in 1 file changed: 0 ins; 6 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/28865.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28865/head:pull/28865

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


More information about the net-dev mailing list