mockito
https://github.com/mockito/mockito
Java
Most popular Mocking framework for unit tests written in Java
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Java not yet supported143 Subscribers
View all SubscribersAdd a CodeTriage badge to mockito
Help out
- Issues
- Flickering tests if static mocking is used
- Snapshot and Restore of Mocked Stubs/State
- PotentialStubbingProblem wrongly reported with spy and overload
- Toggling tests with MockitoExtension or private static final mock variable for Parallel Tests with @ParameterizedTest
- 3.7.7 inline can not find MockMethodDispatcher - has worked in 3.2.4
- Failed to mock interface in Debian but succeeded in Mac OS
- verifyNoMoreInteractions does not work as expected when used with MockitoSession
- mockStatic of enum class is unstable - impacted by earlier use of the class (unrelated to mockStatic)
- Flaky test StubbingLookupListenerCallbackTest > add_listeners_concurrently_sanity_check
- staticMock() and singletons
- Docs
- Java not yet supported