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

Daniel Fuchs dfuchs at openjdk.org
Tue Dec 16 15:05:49 UTC 2025


> These test used to use the testng `IContextTest` API to stop tests after the first failure.
> @sormuras suggested an even more elegant way to do that with JUnit.
> Usage of IContextTest has been replaced with a `TestWatcher` that records the first failure and uses `Assumptions` to prevent further test execution. 
> 
> The rest of the changes were (almost) mechanical.

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

  Minor cleanup

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/28846/files
  - new: https://git.openjdk.org/jdk/pull/28846/files/f4e8ed7a..2c17b02c

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

  Stats: 17 lines in 1 file changed: 4 ins; 9 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/28846.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28846/head:pull/28846

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


More information about the net-dev mailing list