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
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
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