{"id":13440235,"url":"https://github.com/mockito/mockito","last_synced_at":"2025-05-12T16:09:00.085Z","repository":{"id":5046548,"uuid":"6207167","full_name":"mockito/mockito","owner":"mockito","description":"Most popular Mocking framework for unit tests written in Java","archived":false,"fork":false,"pushed_at":"2025-04-21T18:32:57.000Z","size":49362,"stargazers_count":15138,"open_issues_count":458,"forks_count":2612,"subscribers_count":420,"default_branch":"main","last_synced_at":"2025-05-03T06:57:08.561Z","etag":null,"topics":["java","java-library","mock","mock-library","mocking","mocking-framework","mockito","mocks","test-automation","test-driven-development","testing","testing-tools"],"latest_commit_sha":null,"homepage":"http://mockito.org","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"OCA/product-attribute","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mockito.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"tidelift":"maven/org.mockito:mockito-core"}},"created_at":"2012-10-13T20:27:12.000Z","updated_at":"2025-05-02T11:06:58.000Z","dependencies_parsed_at":"2023-07-05T18:49:14.085Z","dependency_job_id":"5706f8a9-afc4-4da2-b4f0-801a20c7e2be","html_url":"https://github.com/mockito/mockito","commit_stats":{"total_commits":5691,"total_committers":353,"mean_commits":"16.121813031161473","dds":0.520646635037779,"last_synced_commit":"942d8ceb4612b9956462ba43f47ca56e5cd1f260"},"previous_names":[],"tags_count":646,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockito%2Fmockito","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockito%2Fmockito/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockito%2Fmockito/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockito%2Fmockito/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mockito","download_url":"https://codeload.github.com/mockito/mockito/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252330094,"owners_count":21730679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","java-library","mock","mock-library","mocking","mocking-framework","mockito","mocks","test-automation","test-driven-development","testing","testing-tools"],"created_at":"2024-07-31T03:01:20.943Z","updated_at":"2025-05-05T12:43:31.197Z","avatar_url":"https://github.com/mockito.png","language":"Java","readme":"\u003ca href=\"https://site.mockito.org\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/mockito/mockito/main/config/javadoc/resources/org/mockito/logo.png\"\n     srcset=\"https://raw.githubusercontent.com/mockito/mockito/main/config/javadoc/resources/org/mockito/logo@2x.png 2x\"\n     alt=\"Mockito\" /\u003e\n\u003c/a\u003e\n\nMost popular mocking framework for Java\n\n[![CI](https://github.com/mockito/mockito/workflows/CI/badge.svg)](https://github.com/mockito/mockito/actions?query=workflow%3ACI)\n[![Coverage Status](https://img.shields.io/codecov/c/github/mockito/mockito.svg)](https://codecov.io/github/mockito/mockito)\n[![MIT License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/mockito/mockito/blob/main/LICENSE)\n\n[![Release Notes](https://img.shields.io/badge/release%20notes-5.x-yellow.svg)](https://github.com/mockito/mockito/releases/)\n[![Maven Central](https://img.shields.io/maven-central/v/org.mockito/mockito-core.svg)](https://search.maven.org/artifact/org.mockito/mockito-core/)\n[![Javadoc](https://www.javadoc.io/badge/org.mockito/mockito-core.svg)](https://www.javadoc.io/doc/org.mockito/mockito-core)\n\n\n## Current version is 5.x\nStill on Mockito 1.x? See [what's new](https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2) in Mockito 2!\n[Mockito 3](https://github.com/mockito/mockito/releases/tag/v3.0.0) does not introduce any breaking API changes, but now requires Java 8 over Java 6 for Mockito 2.\n[Mockito 4](https://github.com/mockito/mockito/releases/tag/v4.0.0) removes deprecated API.\n[Mockito 5](https://github.com/mockito/mockito/releases/tag/v5.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://tidelift.com/subscription/pkg/maven-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://tidelift.com/subscription/pkg/maven-org-mockito-mockito-core?utm_source=maven-org-mockito-mockito-core\u0026utm_medium=referral\u0026utm_campaign=enterprise\u0026utm_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://shipkit.org), [Gradle Nexus Publish Plugin](https://github.com/gradle-nexus/publish-plugin).\nFully automated releases are awesome, and you should do that for your libraries, too!\nSee the [latest release notes](https://github.com/mockito/mockito/releases/)\nand [latest documentation](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html). Docs in\njavadoc.io are available 24h after release. Read also\nabout [semantic versioning in Mockito](https://github.com/mockito/mockito/wiki/Semantic-Versioning).\n\nOlder 1.x and 2.x releases are available in\n[Central Repository](https://search.maven.org/artifact/org.mockito/mockito-core/1.10.19/jar)\nand [javadoc.io](https://javadoc.io/doc/org.mockito/mockito-core/1.10.19/org/mockito/Mockito.html) (documentation).\n\n## More information\n\nAll you want to know about Mockito is hosted at [The Mockito Site](https://site.mockito.org) which is [Open Source](https://github.com/mockito/mockito.github.io) and likes [pull requests](https://github.com/mockito/mockito.github.io/pulls), too.\n\nWant to contribute? Take a look at the [Contributing Guide](https://github.com/mockito/mockito/blob/main/.github/CONTRIBUTING.md).\n\nEnjoy Mockito!\n\n## Need help?\n\n* Search / Ask question on [stackoverflow](https://stackoverflow.com/questions/tagged/mockito)\n* Go to the [mockito mailing-list](https://groups.google.com/group/mockito) (moderated)\n* Open a ticket in GitHub [issue tracker](https://github.com/mockito/mockito/issues)\n\n## How to develop Mockito?\n\nTo build locally:\n\n```shell\n./gradlew build\n```\nYou can open in any IDE that support Gradle, e.g. IntelliJ IDEA, or Fleet.\nFor Eclipse, one may need to run `./gradlew 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://s01.oss.sonatype.org/content/repositories/snapshots/org/mockito/mockito-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","funding_links":["https://tidelift.com/funding/github/maven/org.mockito:mockito-core","https://tidelift.com/subscription/pkg/maven-org-mockito-mockito-core","https://tidelift.com/subscription/pkg/maven-org-mockito-mockito-core?utm_source=maven-org-mockito-mockito-core\u0026utm_medium=referral\u0026utm_campaign=enterprise\u0026utm_term=repo"],"categories":["HarmonyOS","Java","Projects","库","Mock","Library","Java 程序设计","项目","测试","Android Kotlin Project Showcase","四、测试与代码质量","dependency list","系统设计","IV. Testing","Solutions","Mocking","Testing","Uncategorized"],"sub_categories":["Windows Manager","Testing","测试","Helper","网络服务_其他","Spring Boot","1. 测试框架","1. Testing","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmockito%2Fmockito","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmockito%2Fmockito","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmockito%2Fmockito/lists"}