10000 GitHub - dancer1325/mockito: Most popular Mocking framework for unit tests written in Java
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dancer1325/mockito

 
 

Repository files navigation

Mockito

Most popular mocking framework for Java

CI Coverage Status MIT License

Release Notes Maven Central Javadoc

Current version is 5.x

  • what's new | Mockito 2
    • requirements
      • Java v6+
  • Mockito 3
    • NOT breaking API changes
    • requirements
      • Java v8+
  • Mockito 4
    • removes deprecated API
  • Mockito 5
    • default mockmaker -- is replaced by -- mockito-inline
    • changes are NOT backward compatible
    • requirements
      • Java v11+

Mockito for enterprise

  • Tidelift Subscription
  • run by
    • maintainers of org.mockito:mockito-core
  • benefits
    • Save time
    • reduce risk
    • improve code health
    • pay on demand the exact dependencies / you use
  • Learn more.

Development

More information

All you want to know about Mockito is hosted at The Mockito Site which is Open Source and likes pull requests, too.

Want to contribute? Take a look at the Contributing Guide.

Enjoy Mockito!

Need help?

How to develop Mockito?

  • ./gradlew build
    • build locally
  • if you are using IntelliJ IDEA -> you can
    • use built-in Gradle import wizard | IDEA
    • ./gradlew idea
      • -- generate the -- importable IDEA metadata files
      • open the generated "*.ipr" | IDEA

How to release new version?

  1. Every change on the main development branch is released as -SNAPSHOT version to Sonatype snapshot repo at https://s01.oss.sonatype.org/content/repositories/snapshots/org/mockito/mockito-core.
  2. In order to release a non-snapshot version to Maven Central push an annotated tag, for example:
git tag -a -m "Release 3.4.5" v3.4.5
git push origin v3.4.5
  1. At the moment, you may not create releases from GitHub Web UI. Doing so will make the CI build fail because the CI creates the changelog and posts to GitHub releases. We'll support this in the future.

About

Most popular Mocking framework for unit tests written in Java

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 98.8%
  • Other 1.2%
0