RFR: 8288885: Introduce a jwebserver launcher utility in test library for jtreg tests

Jaikiran Pai jpai at openjdk.org
Wed Jun 22 07:44:34 UTC 2022


On Wed, 22 Jun 2022 06:09:39 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Can I please get a review for this change which adds a utility to the JDK test library to help launch the JWebServer? As noted in the JBS issue, this utility does the necessary work to make sure when the `launch()` method returns, the jwebserver is ready to receive requests. This helps remove a lot of boilerplate code from individual tests.
> 
> As part of this commit, the existing `MaxRequestTimeTest` has been migrated to use this new utility. This existing test continues to pass with this change.
> 
> tier1, tier2 and tier3 testing passed without any related issues.

I've updated this PR with updates to the javadoc of this new utility to clarify that it launches a new process and the caller is responsible for destroying that process when it's no longer needed.

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

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


More information about the net-dev mailing list