-3

Im using junit 4.12 powermock-module-junit4 - 1.6.1 powermock-api-mockito- 1.6.1

The error i'm getting is java.lang.NoSuchMethodError when trying to use mockStatic method

Rohan RM
  • 157
  • 1
  • 2
  • 10

1 Answers1

0

The method you want to run is in PowerMock.mockStatic(ClassThatContainsStaticMethod.class) not is PowerMockito

Make sure you read Exception Documentation to understand what went wrong

Wild_Owl
  • 431
  • 2
  • 7
  • Maybe but then how come his source compiles in the first place. Without source code, this is just guessing. – GhostCat Oct 28 '18 at 13:25