[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-4000":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":39,"discoverSource":40},4000,"mockito","mockito\u002Fmockito","Most popular Mocking framework for unit tests written in Java","http:\u002F\u002Fmockito.org",null,"Java",15432,2657,411,452,0,2,11,1,45,"MIT License",false,"main",true,[25,26,27,28,29,30,5,31,32,33,34,35],"java","java-library","mock","mock-library","mocking","mocking-framework","mocks","test-automation","test-driven-development","testing","testing-tools","2026-06-12 02:00:57","\u003Ca href=\"https:\u002F\u002Fsite.mockito.org\">\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fmockito\u002Fmockito\u002Fmain\u002Fconfig\u002Fjavadoc\u002Fresources\u002Forg\u002Fmockito\u002Flogo.png\"\n     srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fmockito\u002Fmockito\u002Fmain\u002Fconfig\u002Fjavadoc\u002Fresources\u002Forg\u002Fmockito\u002Flogo@2x.png 2x\"\n     alt=\"Mockito\" \u002F>\n\u003C\u002Fa>\n\nMost popular mocking framework for Java\n\n[![CI](https:\u002F\u002Fgithub.com\u002Fmockito\u002Fmockito\u002Fworkflows\u002FCI\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fmockito\u002Fmockito\u002Factions?query=workflow%3ACI)\n[![Coverage Status](https:\u002F\u002Fimg.shields.io\u002Fcodecov\u002Fc\u002Fgithub\u002Fmockito\u002Fmockito.svg)](https:\u002F\u002Fcodecov.io\u002Fgithub\u002Fmockito\u002Fmockito)\n[![MIT License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-green.svg)](https:\u002F\u002Fgithub.com\u002Fmockito\u002Fmockito\u002Fblob\u002Fmain\u002FLICENSE)\n\n[![Release Notes](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Frelease%20notes-5.x-yellow.svg)](https:\u002F\u002Fgithub.com\u002Fmockito\u002Fmockito\u002Freleases\u002F)\n[![Maven Central](https:\u002F\u002Fimg.shields.io\u002Fmaven-central\u002Fv\u002Forg.mockito\u002Fmockito-core.svg)](https:\u002F\u002Fsearch.maven.org\u002Fartifact\u002Forg.mockito\u002Fmockito-core\u002F)\n[![Javadoc](https:\u002F\u002Fwww.javadoc.io\u002Fbadge\u002Forg.mockito\u002Fmockito-core.svg)](https:\u002F\u002Fwww.javadoc.io\u002Fdoc\u002Forg.mockito\u002Fmockito-core)\n\n\n## Current version is 5.x\nStill on Mockito 1.x? See [what's new](https:\u002F\u002Fgithub.com\u002Fmockito\u002Fmockito\u002Fwiki\u002FWhat%27s-new-in-Mockito-2) in Mockito 2!\n[Mockito 3](https:\u002F\u002Fgithub.com\u002Fmockito\u002Fmockito\u002Freleases\u002Ftag\u002Fv3.0.0) does not introduce any breaking API changes, but now requires Java 8 over Java 6 for Mockito 2.\n[Mockito 4](https:\u002F\u002Fgithub.com\u002Fmockito\u002Fmockito\u002Freleases\u002Ftag\u002Fv4.0.0) removes deprecated API.\n[Mockito 5](https:\u002F\u002Fgithub.com\u002Fmockito\u002Fmockito\u002Freleases\u002Ftag\u002Fv5.0.0) switches the default mockmaker to mockito-inline, and now requires Java 11.\nOnly one major version is supported at a time, and changes are not backported to older versions.\n\n## Mockito for enterprise\n\nAvailable as part of the [Tidelift](https:\u002F\u002Ftidelift.com\u002Fsubscription\u002Fpkg\u002Fmaven-org-mockito-mockito-core) Subscription.\n\nThe maintainers of org.mockito:mockito-core and thousands of other packages are working with Tidelift to deliver\ncommercial support and maintenance for the open source dependencies you use to build your applications. Save time,\nreduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.\n[Learn more.](https:\u002F\u002Ftidelift.com\u002Fsubscription\u002Fpkg\u002Fmaven-org-mockito-mockito-core?utm_source=maven-org-mockito-mockito-core&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)\n\n## Development\n\nMockito publishes every change as a `-SNAPSHOT` version to a public Sonatype repository. Roughly once a month, we\npublish a new minor or patch version to Maven Central. For release automation we use\n[Shipkit library](http:\u002F\u002Fshipkit.org), [Gradle Nexus Publish Plugin](https:\u002F\u002Fgithub.com\u002Fgradle-nexus\u002Fpublish-plugin).\nFully automated releases are awesome, and you should do that for your libraries, too!\nSee the [latest release notes](https:\u002F\u002Fgithub.com\u002Fmockito\u002Fmockito\u002Freleases\u002F)\nand [latest documentation](https:\u002F\u002Fjavadoc.io\u002Fdoc\u002Forg.mockito\u002Fmockito-core\u002Flatest\u002Forg.mockito\u002Forg\u002Fmockito\u002FMockito.html). Docs in\njavadoc.io are available 24h after release. Read also\nabout [semantic versioning in Mockito](https:\u002F\u002Fgithub.com\u002Fmockito\u002Fmockito\u002Fwiki\u002FSemantic-Versioning).\n\nOlder 1.x and 2.x releases are available in\n[Central Repository](https:\u002F\u002Fsearch.maven.org\u002Fartifact\u002Forg.mockito\u002Fmockito-core\u002F1.10.19\u002Fjar)\nand [javadoc.io](https:\u002F\u002Fjavadoc.io\u002Fdoc\u002Forg.mockito\u002Fmockito-core\u002F1.10.19\u002Forg\u002Fmockito\u002FMockito.html) (documentation).\n\n## More information\n\nAll you want to know about Mockito is hosted at [The Mockito Site](https:\u002F\u002Fsite.mockito.org) which is [Open Source](https:\u002F\u002Fgithub.com\u002Fmockito\u002Fmockito.github.io) and likes [pull requests](https:\u002F\u002Fgithub.com\u002Fmockito\u002Fmockito.github.io\u002Fpulls), too.\n\nWant to contribute? Take a look at the [Contributing Guide](https:\u002F\u002Fgithub.com\u002Fmockito\u002Fmockito\u002Fblob\u002Fmain\u002F.github\u002FCONTRIBUTING.md).\n\nEnjoy Mockito!\n\n## Need help?\n\n* Search \u002F Ask question on [stackoverflow](https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002Ftagged\u002Fmockito)\n* Go to the [mockito mailing-list](https:\u002F\u002Fgroups.google.com\u002Fgroup\u002Fmockito) (moderated)\n* Open a ticket in GitHub [issue tracker](https:\u002F\u002Fgithub.com\u002Fmockito\u002Fmockito\u002Fissues)\n\n## How to develop Mockito?\n\nTo build locally:\n\n```shell\n.\u002Fgradlew build\n```\nYou can open in any IDE that support Gradle, e.g. IntelliJ IDEA, or Fleet.\nFor Eclipse, one may need to run `.\u002Fgradlew eclipse` before importing the project.\n\n## How to release new version?\n\n1. Every change on the main development branch is released as `-SNAPSHOT` version to Sonatype snapshot repo\n   at https:\u002F\u002Fs01.oss.sonatype.org\u002Fcontent\u002Frepositories\u002Fsnapshots\u002Forg\u002Fmockito\u002Fmockito-core.\n2. To release a non-snapshot version to Maven Central push an annotated tag, for example:\n\n    ```shell\n    git tag -a -m \"Release 3.4.5\" v3.4.5\n    git push origin v3.4.5\n    ```\n\n3. At the moment, you **may not create releases from GitHub Web UI**. Doing so will make the CI build fail because the\n   CI creates the changelog and posts to GitHub releases. We'll support this in the future.\n","Mockito 是一个广泛使用的 Java 单元测试模拟框架。它通过提供简洁的 API 来创建和配置模拟对象，从而简化了单元测试的编写过程。核心功能包括但不限于自动模拟、验证行为以及设置预期返回值等。技术特点上，Mockito 采用注解和链式调用来提高代码可读性，并且支持多种匹配器以满足复杂的测试需求。适合于需要进行单元测试的 Java 应用场景，特别是当项目中存在大量依赖外部服务或组件时，使用 Mockito 可以有效隔离这些依赖，专注于被测代码逻辑本身的正确性验证。","2026-06-11 02:57:40","top_language"]