-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 27
-
Component/s: core-libs
-
master
Some HttpClient tests - like test/jdk/java/net/httpclient/SmokeTest.java, depend on non-library test classes that where developed for testing the HttpServer, such as ../../../com/sun/net/httpserver/FileServerHandler.java which requires compiling using `@compile`.
Instead of depending on HttpServer directly, these tests should use the common servers provided by the `HttpServerAdapters` offered by the test/jdk/java/net/httpclient/lib library. An adapted version of the ../../../com/sun/net/httpserver/FileServerHandler.java could be provided by the HttpServerAdapters helper.
There are also 5 implementations of stand-alone echo handlers in the httpclient test base. We should try to coalesce them into one implementation in HttpServerAdapters.
Instead of depending on HttpServer directly, these tests should use the common servers provided by the `HttpServerAdapters` offered by the test/jdk/java/net/httpclient/lib library. An adapted version of the ../../../com/sun/net/httpserver/FileServerHandler.java could be provided by the HttpServerAdapters helper.
There are also 5 implementations of stand-alone echo handlers in the httpclient test base. We should try to coalesce them into one implementation in HttpServerAdapters.
- links to
-
Commit(master)
openjdk/jdk/c78a2a8c
-
Review(master)
openjdk/jdk/29702