Mocking static methods with Mockito
From Mockito 3.4.0, it is possible to mock static method even in Junit 5 thus reducing the dependency on using PowerMock.
To use this, add dependency with mockito-inline >= 3.4.0 and remove dependency on mockito-core if it exists.
Let’s consider the ...
aparnavikraman.hashnode.dev1 min read