0

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?

Martin Evans
  • 45,791
  • 17
  • 81
  • 97
Arun Kumar
  • 340
  • 2
  • 15

1 Answers1

0

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

Arun Kumar
  • 340
  • 2
  • 15