You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever possible we should avoid mocking static methods, as mostly this is a sign of badly designed code. But if it is really needed (eg. in some legacy code), we may use the Mockito.mockStatic instead (v3.4.+).
Another reason is that PowerMock fails on recent Java versions
The text was updated successfully, but these errors were encountered:
Whenever possible we should avoid mocking static methods, as mostly this is a sign of badly designed code. But if it is really needed (eg. in some legacy code), we may use the
Mockito.mockStatic
instead (v3.4.+
).Another reason is that PowerMock fails on recent Java versions
The text was updated successfully, but these errors were encountered: