eclipse junit cannot be resolved to a type code example
Example: the import junit cannot be resolved maven
Properties -> Java Build Path -> Libraries -> Add Library -> JUnit -> Junit5
Properties -> Java Build Path -> Libraries -> Add Library -> JUnit -> Junit5