Issue
I have a multi module maven project with a lots of JUnit5 based tests. On the command line everything works fine and all tests are executed.
However IntelliJ behaves like there is not JUnit dependency. All JUnit imports and code usages are marked red:
Any ideas what could be wrong?
Solution
As I mentioned in comments, to solve the issue:
"Cannot resolve symbol ..."
with imports, you can right-click in POM
and do Maven
-> Reload project
:
For more details you can refer, for instance, to this article.
Answered By - invzbl3