Replies: 4 comments 1 reply
-
Where are you seeing these warnings? Sounds more like IDE inspections to me. |
Beta Was this translation helpful? Give feedback.
-
In IntelliJ IDEA. Should this come from the IDE and not from the framework or JUnit plugin? |
Beta Was this translation helpful? Give feedback.
-
Thank you for confirming that these warnings are from IDEA. The warnings you are seeing are not under the control of JUnit. If you would like for the potential error detection and warnings to be improved, please raise an issue in the IDEA issue tracker. In light of that, I am closing this discussion. |
Beta Was this translation helpful? Give feedback.
-
Hit this also, lot of tracking bugs in jetbrains tracker already https://youtrack.jetbrains.com/issues?q=%22should%20not%20declare%20parameter%22 |
Beta Was this translation helpful? Give feedback.
-
I have encountered situations when the compiler falsely warns about possible problems in using JUnit 5.
In 5.9.2 (haven't tested it on newer versions) there are two cases:
Method 'someMethod' annotated with '@Test' should not declare parameter 'someParameter'
occurs when the ParameterResolver implementation is declared in the superclass.
SomeExtension should be registered at the class level
in case when we have a field-declared implementation, for example, of AfterAllCallback, in a class annotated
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
Could they be improved?
Beta Was this translation helpful? Give feedback.
All reactions