> Please review this PR which modernizes > `test/jdk/java/net/URLClassLoader/HttpTest.java`, a test verifying HTTP > requests made by a URLClassLoader with HTTP search paths. > > The test is updated to replace a custom `HttpServer` class with one using > `com.sun.net.httpserver`. Instead of simply counting GET and HEAD requests, > the test now captures each request's method and URI in a log, which allows > more precise asserts on the expected request patterns. > > The test is updated to use JUnit 5. > > For good measure, some negative test methods are added, verifying expected > HTTP requests when one of the HTTP paths returns a 404 response. > > Test-only enhancement, `noreg-self`
Eirik Bjørsnøs has updated the pull request incrementally with two additional commits since the last revision: - Add note explaining why we observe two redirects from URLClassLoader::getResourceAsStream - Add jtreg modules tag for jdk.httpserver ------------- Changes: - all: https://git.openjdk.org/jdk/pull/29864/files - new: https://git.openjdk.org/jdk/pull/29864/files/68c02396..b6a47357 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=29864&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29864&range=02-03 Stats: 8 lines in 1 file changed: 7 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/29864.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/29864/head:pull/29864 PR: https://git.openjdk.org/jdk/pull/29864
