-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to use CloseableResource
#3840
Document how to use CloseableResource
#3840
Conversation
…or an HttpServer resource. Issue: junit-team#1555
@@ -714,6 +713,26 @@ extension context lifecycle ends it closes its associated store. All stored valu | |||
that are instances of `CloseableResource` are notified by an invocation of their `close()` | |||
method in the inverse order they were added in. | |||
|
|||
An example use-case of `ClosableResource` is shown below, using an `HttpServer` resource. |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Issue: junit-team#1555
CloseableResource
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! 👍
Instead of implementing BeforeAllCallback
, I think we should implement ParameterResolver
for HttpServer
and start the server lazily when it's first being resolved.
@SveinKare Please let me know if you have time to make this change or if you'd like me to take over.
@marcphilipp You can go ahead and change it |
@SveinKare Thanks for taking care of this! 👍 |
Issue: #1555
Overview
Added an explanation in the user guide for how
CloseableResource
can be used, with an example using anHttpServer
resource.I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@API
annotations