Я использую mockiot- scala -2.12-1.13.9 для написания фиктивных тестов в scala. Я получаю следующее исключение при запуске теста из intellij.
Необходимый класс не найден. Это может быть связано с ошибкой в вашем пути выполнения. Отсутствующий класс: org / mockito / MockCreator $ class
java.lang.NoClassDefFoundError: org/mockito/MockCreator$class
at ms.runners.PerformanceSuiteRunnerTest.<init>(PerformanceSuiteRunnerTest.scala:17)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.scalatest.tools.Runner$.genSuiteConfig(Runner.scala:1431)
at org.scalatest.tools.Runner$$anonfun$31.apply(Runner.scala:1239)
at org.scalatest.tools.Runner$$anonfun$31.apply(Runner.scala:1238)
at scala.collection.immutable.List.map(List.scala:284)
at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1238)
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1012)
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1011)
at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1509)
at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1011)
at org.scalatest.tools.Runner$.run(Runner.scala:850)
at org.scalatest.tools.Runner.run(Runner.scala)
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.runScalaTest2(ScalaTestRunner.java:133)
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.main(ScalaTestRunner.java:27)
Caused by: java.lang.ClassNotFoundException: org.mockito.MockCreator$class
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 19 more