{"full_name":"mockito/mockito","owner":"mockito","name":"mockito","shard":"1","url":"https://github.com/mockito/mockito","description":"Most popular Mocking framework for unit tests written in Java","homepage":"http://mockito.org","topics":["mockito","java","mocking-framework","testing-tools","mocking","mock","mocks","testing","test-automation","test-driven-development","mock-library","java-library"],"tag_pages":["java","java-library","mock","mocking-framework","test-automation","test-driven-development","testing","testing-tools"],"language":"Java","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/2054056?v=4","created_at":"2012-10-13T20:27:12Z","pushed_at":"2026-11-05T20:21:30Z","metrics":{"stars":15448,"forks":2684,"watchers":407,"issues":1811,"prs":2063,"releases":227,"issues_open":452,"issues_closed":1359,"prs_open":52,"prs_closed":406,"prs_merged":1605,"discussions":26},"growth":{"day":{"stars":-1,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[15448,15449,15449,15449,15449,15449,15448],"forks":[2684,2685,2685,2685,2684,2684,2684],"watchers":[null,407,407,407,407,407,407],"issues_open":[null,452,452,452,452,452,452],"prs_open":[null,51,52,52,52,52,52]},"boards":{},"same_owner":[],"issues":[{"number":769,"title":"Strictness in Mockito","comments":54,"created_at":"2016-11-19T20:04:42Z"},{"number":2436,"title":"mockito-inline on OpenJDK 17 fails to start due to ByteBuddy agent failure","comments":38,"created_at":"2021-09-26T16:52:22Z"},{"number":1511,"title":"Mockito-Android 2.23.0 fails transformClassesWithDexBuilderForDevelopDebugAndroidTest","comments":31,"created_at":"2018-10-06T15:28:11Z"},{"number":978,"title":"AttachNotSupportedException: no providers installed. When using mock-maker-inline extension and  jmockit.jar is found in classpath on Windows.","comments":31,"created_at":"2017-03-06T20:46:46Z"},{"number":1053,"title":"Real method on mocked object is always called","comments":25,"created_at":"2017-04-28T07:26:18Z"},{"number":3156,"title":"Mockito doesn't initialise static constructors before instrumentation correctly","comments":24,"created_at":"2023-10-21T14:59:54Z"},{"number":2142,"title":"Mocked static methods are not available in other threads","comments":24,"created_at":"2020-12-13T16:23:21Z"},{"number":1437,"title":"Different mocks are used for @Mock and @InjectMock when using @TestInstance(TestInstance.Lifecycle.PER_CLASS) of jUnit5","comments":22,"created_at":"2018-07-21T10:19:23Z"}],"discussions":[{"number":3782,"title":"Difference between Mockito instrumentation and ByteBuddy instrumentation","comments":2,"category":"Q&A","created_at":"2026-01-07T14:44:53Z"},{"number":3740,"title":"Mockito assumptions","comments":1,"category":"Q&A","created_at":"2025-09-30T07:36:07Z"},{"number":3717,"title":"How to register more defaults globally in particular for Project Reactor","comments":2,"category":"Q&A","created_at":"2025-08-28T13:54:33Z"},{"number":3639,"title":"Mockito code evolution","comments":0,"category":"Show and tell","created_at":"2025-04-16T19:36:46Z"},{"number":3630,"title":"Get error Byte Buddy agent is not initialized or unavailable when upgrade from Mockito 3.12.4 to 5.4.0, JDK11, bazel repository","comments":1,"category":"Q&A","created_at":"2025-03-31T22:05:48Z"},{"number":3603,"title":"Gradle plugin for Mockito agent configuration","comments":2,"category":"Show and tell","created_at":"2025-03-03T13:33:02Z"},{"number":3598,"title":"Mocking Logger - Running individually OK - Running together fails","comments":1,"category":"Q&A","created_at":"2025-02-25T15:54:21Z"},{"number":3596,"title":"Helper maven plugin for Java agent warnings","comments":1,"category":"Show and tell","created_at":"2025-02-23T14:04:10Z"}],"latest_release":{"name":"v5.24.0","tag":"v5.24.0","published_at":"2026-09-23T13:58:10Z","body":"<sup><sup>*Changelog generated by [Shipkit Changelog Gradle Plugin](https://github.com/shipkit/shipkit-changelog)*</sup></sup>\r\n\r\n#### 5.24.0\r\n - 2026-09-23 - [27 commit(s)](https://github.com/mockito/mockito/compare/v5.23.0...v5.24.0) by Andrei Solntsev, DragonFSKY, Hünkar Can Tunç, Joshua Selbo, M. Minot, Markus Gaisbauer, Mirko Alicastro, Vinod Kumar M ( codingkiddo ), dependabot[bot]\r\n - Fix Mockito docs for -javaagent flag with Gradle [(#3866)](https://github.com/mockito/mockito/pull/3866)\r\n - Kotlin example for adding Mockito as an agent is incorrect [(#3864)](https://github.com/mockito/mockito/issues/3864)\r\n - Bump graalvm/setup-graalvm from 1.6.3 to 1.6.6 [(#3862)](https://github.com/mockito/mockito/pull/3862)\r\n - Bump gradle/actions from 6.2.0 to 6.3.0 [(#3852)](https://github.com/mockito/mockito/pull/3852)\r\n - Bump gradle/actions from 5 to 6.2.0 [(#3851)](https://github.com/mockito/mockito/pull/3851)\r\n - Preserve method parameters when clearing inline mocks [(#3847)](https://github.com/mockito/mockito/pull/3847)\r\n - Bump graalvm/setup-graalvm from 1.6.0 to 1.6.3 [(#3845)](https://github.com/mockito/mockito/pull/3845)\r\n - Print object fields via reflection when `toString()` is not implemented [(#3844)](https://github.com/mockito/mockito/pull/3844)\r\n - Migrate extensions-tests to JUnit Jupiter [(#3840)](https://github.com/mockito/mockito/pull/3840)\r\n - Bump graalvm/setup-graalvm from 1.5.6 to 1.6.0 [(#3839)](https://github.com/mockito/mockito/pull/3839)\r\n - docs(when-verify): fixes to explanations about redundancy [(#3838)](https://github.com/mockito/mockito/pull/3838)\r\n - Confusing inconsistency in example method calls in “stubbing and verifying is redundant” note of “when” and “verify” Javadoc [(#3837)](https://github.com/mockito/mockito/issues/3837)\r\n - Bump actions/checkout from 6 to 7 [(#3836)](https://github.com/mockito/mockito/pull/3836)\r\n - Fixes #2740 : Add mockMaker option to `@Spy` annotation [(#3835)](https://github.com/mockito/mockito/pull/3835)\r\n - Bump graalvm/setup-graalvm from 1.5.5 to 1.5.6 [(#3834)](https://github.com/mockito/mockito/pull/3834)\r\n - Bump graalvm/setup-graalvm from 1.5.4 to 1.5.5 [(#3833)](https://github.com/mockito/mockito/pull/3833)\r\n - Bump codecov/codecov-action from 6 to 7 [(#3831)](https://github.com/mockito/mockito/pull/3831)\r\n - Bump graalvm/setup-graalvm from 1.4.5 to 1.5.4 [(#3830)](https://github.com/mockito/mockito/pull/3830)\r\n - Fix clearInlineMocks not de-registering singleton mocks [(#3829)](https://github.com/mockito/mockito/pull/3829)\r\n - Fix NotAMockException when using mockSingleton with MockitoJUnit [(#3827)](https://github.com/mockito/mockito/pull/3827)\r\n - NotAMockException when using mockSingleton with MockitoSession or MockitoJUnit [(#3826)](https://github.com/mockito/mockito/issues/3826)\r\n - Improve Gradle agent docs for configuration cache [(#3823)](https://github.com/mockito/mockito/pull/3823)\r\n - Gradle documentation for setting up instrumentation with Gradle configuration cache [(#3822)](https://github.com/mockito/mockito/issues/3822)\r\n - Fixes #3818 : Fix data race in InvocationContainerImpl.invocationForStubbing [(#3819)](https://github.com/mockito/mockito/pull/3819)\r\n - Data race on invocationForPotentialStubbing [(#3818)](https://github.com/mockito/mockito/issues/3818)\r\n - Fixes #3814 : implement package-level clinit suppression [(#3815)](https://github.com/mockito/mockito/pull/3815)\r\n - Package-level clinit suppression [(#3814)](https://github.com/mockito/mockito/issues/3814)\r\n - Upgrade Android Gradle Plugin to 8.13.2 [(#3812)](https://github.com/mockito/mockito/pull/3812)\r\n - Replaces raw generic types with type parameters [(#3806)](https://github.com/mockito/mockito/pull/3806)\r\n - Fixes #2398 : Implement global suppress static initialization leveraging java agent [(#3801)](https://github.com/mockito/mockito/pull/3801)\r\n - Bump codecov/codecov-action from 5 to 6 [(#3800)](https://github.com/mockito/mockito/pull/3800)\r\n - Fix non-deterministic Asserti","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}