Skip to content

PiotrDuz/mutlithreaded-mockito

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An example showing how to make Mockito compatible with Integration tests running async processes. Article: https://piotrd.hashnode.dev/mockito-and-strange-unfinishedstubbing-problems

Usage:

  • remember about mockito-extensions folder. This is how you register an extensions to mockito
  • Classes MockitoSynchronizer and SynchronizedMockMaker are ready to be used. Mind the static map holding the locks. Weak keys are to not hold onto the objects for too long, Spring tests can create several ApplicationContextees.

About

.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages