Parameter resolution should be more flexible #5111
Replies: 1 comment 1 reply
-
|
Yes, this is by design: https://docs.junit.org/current/user-guide/#writing-tests-parameterized-tests-consuming-arguments-methods While Jupiter could figure that out |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Just stumpled over an interesting problem:
While this works
This does not
because JUnit is not able to decide how to resolve the
tempDirparameter. BecausetempDiris annotated with@TempDir, I would expect JUnit to figure this out.Is this by design? Would this overcomplicate the parameter resolution algorithm?
Beta Was this translation helpful? Give feedback.
All reactions