Issue
I am getting this error in eclipse:
"org.mockito cannot be resolved to a module" in module-info.java
I have tried with an upgraded version of mockito-core.jar 3.0.0 but problem not resolved. Eclipse version is : 2018-12 (4.10.0)
module somemodule {
exports abc.changer;
requires spring.boot;
requires spring.boot.autoconfigure;
requires org.mockito;
}
Any suggestions on how to fix this?
Solution
we can resolve it with separate modules eg module-info.java and module-info.test. it require maven-compiler-plugin 3.8.x. for complete solution plese go to https://sormuras.github.io/blog/2018-09-11-testing-in-the-modular-world.html
Answered By - Arun Kumar
Answer Checked By - Robin (JavaFixing Admin)