Intention action do not offer to import org.junit, only junit.framework

Answered

Hi,

Since switching to IntelliJ 2016.3.4 (Community Edition) from 15.x, the intention action (Alt + Enter) to statically import JUnit methods doesn't seem to offer any methods from the org.junit package anymore; cf. screenshot below:

Any idea what I need to do to get the methods from the org.junit.Assert class offered again?

By the looks of it, the class I'm working on is in a module that has access to the right maven dependency (I'm working on a multi-module project), as the third method in the drop-down appears to be from the right JUnit library...

Kind regards,

Christian

0
1 comment

Found the culprit - and no, I have no idea how it got there... ;-)

0

Please sign in to leave a comment.