IntelliJ IDEA cannot resolve static import
You either want to do this, which will import all of the static members of Assert
import static org.junit.Assert.*;
Or, to get a specific method
import static org.junit.Assert.assertEquals;
Your syntax is wrong - static imports are for static methods, not for classes. I'm guessing you meant to statically import all the methods belonging to org.junit.Assert
:
import static org.junit.Assert.*;