Constructor injected closable resource in a ParameterResolver #4081
-
Hello, This test class's test methods are running in parallel, so for every test method, JUnit is creating a new instance of the test class and injecting it with a borrowed object. I have a problem though: It seems like the I imagine that this is an issue only for constructor injection and that if I used Any input much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Your description is accurate. In #4057, we've just implemented an opt-in solution to address this issue, but it's not released, yet. |
Beta Was this translation helpful? Give feedback.
Your description is accurate. In #4057, we've just implemented an opt-in solution to address this issue, but it's not released, yet.