RFR: 8373866: Refactor java/net/httpclient/ThrowingSubscribers*.java tests to use JUnit5
Daniel Fuchs
dfuchs at openjdk.org
Wed Dec 17 11:33:16 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
-------------
Commit messages:
- 8373866: Refactor java/net/httpclient/ThrowingSubscribers*.java tests to use JUnit5
Changes: https://git.openjdk.org/jdk/pull/28865/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28865&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8373866
Stats: 166 lines in 10 files changed: 54 ins; 33 del; 79 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