Can I please get a review for this test-only change which addresses https://bugs.openjdk.org/browse/JDK-8303457?
Tests that reside in `test/jdk/java/net/httpclient/` create and use test servers for executing various HttpClient tests against those test servers. As noted in the JBS issue, the code in most of these tests is repeated for the test server creation. All these tests use the test library at `test/jdk/java/net/httpclient/lib/jdk/httpclient/test/lib/`. The changes in this PR include a set of new APIs in `test/jdk/java/net/httpclient/lib/jdk/httpclient/test/lib/common/HttpServerAdapters.java` to help reduce the boilerplate. The rest of the changes across the existing tests is to use these new APIs. No functional changes to the tests has been done. Locally the tests in `test/jdk/java/net/httpclient/` continue to pass with these changes. tier testing is in progress to verify no unforeseen regressions are introduced. ------------- Commit messages: - 8303457: use new API in tests - 8303457: Introduce new convenience APIs in httpclient test library to create HTTP servers Changes: https://git.openjdk.org/jdk/pull/12808/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12808&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8303457 Stats: 548 lines in 47 files changed: 176 ins; 161 del; 211 mod Patch: https://git.openjdk.org/jdk/pull/12808.diff Fetch: git fetch https://git.openjdk.org/jdk pull/12808/head:pull/12808 PR: https://git.openjdk.org/jdk/pull/12808
