IntelliJ ignores JUnit 5

Viewed 177

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:

imports

assertions

Any ideas what could be wrong?

1 Answers

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:

enter image description here

For more details you can refer, for instance, to this article.

Related