Mockito downloads and instructions for setting up Maven, Gradle and other build systems are available from the Central Repository and Bintray. Mockito 3.x requires Java 8, but otherwise doesn’t introduce any breaking changes compared to the 2.x series. Mockito 2.25.0 had an important feature added for anyone using mockito-inline. In particular anyone using Kotlin (which demands using mockito-inline) and PowerMock (which exacerbates the problem even more) will want to add this to all of their test classes to avoid a large memory leak. Fancy getting world-wide visibility and building up an eternal fame of an OSS contributor? Use the latest version! Hack and experiment. Speak up at the mailing list. Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. Mockito doesn’t give you hangover because the tests are very readable and they produce clean verification errors.

Features

  • Maven users can declare a dependency on mockito-core
  • Now you can verify interactions and stub method calls
  • Use Mockito on Android, thanks to the team working on dexmaker
  • Get your team up to speed with test automation with mock objects
  • Achieve maintainable, high quality tests that unlock continuous delivery
  • Secure production code quality and minimize defects through rigorous test automation

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Mockito

Mockito Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Mockito!

Additional Project Details

Programming Language

Java

Related Categories

Java Software Testing Tool, Java Frameworks, Java Automated Testing Tool

Registered

2021-05-18