0

I'm writing Junit test method for a project using Eclipse. There are two packages with the same name as shown below. Class_1 only exists in one of them. When I import this class in another class that is located in another project, the compiler says the class cannot be found.

Project 1 src/test/java: au.com.test.common.package1.Class_1

src/main/java: au.com.test.common.package1. there is no Class_1 in this package1

Project 2 src/test/java: au.com.test.client.packagename.Class_2 imports au.com.test.common.package1.Class_1;

When I maven build the test by />mvn test, the compiler generates error saying Cannot find the symbol. How do I fix this issue please? Many thanks.

deceze
  • 510,633
  • 85
  • 743
  • 889
Rodge Lou
  • 11
  • 1

0 Answers0