Skip to content

reminia/mockito-static-mockmaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mockito-static-mockmaker ci

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.

Setup

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>

Usage

It's a plugin, no any change to the original mockito api, check the unit test for examples.

About

A mockito extention that supports mockStatic globally

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages