Intellij Gradle project cannot resolve assertEquals with junit 4.11 as the testCompile dep import org.junit.Assert.*; should be import static org.junit.Assert.*;