This is a naive mockito mockmaker to support mockStatic
globally.
mockStatic
stubbing in mockito-core has no effects if the stub method is invoked in new threads.
This extension makes it work in multiple threads context and supports both mockito3 & mockito5.
Include the dependence in your project, the plugin is enabled by default.
<dependency>
<groupId>me.yceel.mockito</groupId>
<artifactId>mockito-static-mockmaker</artifactId>
<version>1.0.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
It's a plugin, no any change to the original mockito api, check the unit test for examples.