Advertisement
Guest User

powermock

a guest
Jun 25th, 2020
15
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. java.lang.NoClassDefFoundError: org/mockito/MockitoAnnotations$Mock
  2.  
  3. at org.powermock.api.extension.listener.AnnotationEnabler.getMockAnnotations(AnnotationEnabler.java:91)
  4. at org.powermock.api.extension.listener.AnnotationEnabler.standardInject(AnnotationEnabler.java:70)
  5. at org.powermock.api.extension.listener.AnnotationEnabler.beforeTestMethod(AnnotationEnabler.java:52)
  6. at org.powermock.tests.utils.impl.PowerMockTestNotifierImpl.notifyBeforeTestMethod(PowerMockTestNotifierImpl.java:82)
  7. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(PowerMockJUnit44RunnerDelegateImpl.java:308)
  8. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(PowerMockJUnit47RunnerDelegateImpl.java:131)
  9. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.access$100(PowerMockJUnit47RunnerDelegateImpl.java:59)
  10. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner$TestExecutorStatement.evaluate(PowerMockJUnit47RunnerDelegateImpl.java:147)
  11. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.evaluateStatement(PowerMockJUnit47RunnerDelegateImpl.java:107)
  12. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(PowerMockJUnit47RunnerDelegateImpl.java:82)
  13. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters(PowerMockJUnit44RunnerDelegateImpl.java:298)
  14. at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:87)
  15. at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:50)
  16. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:218)
  17. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:160)
  18. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:134)
  19. at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)
  20. at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)
  21. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:136)
  22. at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:117)
  23. at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:57)
  24. at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:59)
  25. at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
  26. at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
  27. at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
  28. at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
  29. at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
  30. Caused by: java.lang.ClassNotFoundException: org.mockito.MockitoAnnotations$Mock
  31. at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
  32. at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
  33. at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
  34. at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
  35. at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:202)
  36. at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass1(DeferSupportingClassLoader.java:89)
  37. at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:79)
  38. at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
  39. ... 27 more
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement