The import org.junit cannot be resolved code example
Example 1: the import org.mockito.junit.mockitojunitrunner cannot be resolved
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>
Example 2: the import junit cannot be resolved maven
Properties -> Java Build Path -> Libraries -> Add Library -> JUnit -> Junit5