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
Turn Your Content into Interactive Magic - For Free Icon
Turn Your Content into Interactive Magic - For Free

From Canva to Slides, Desmos to YouTube, Lumio works with the tech tools you are already using.

Transform anything you share into an engaging digital experience - for free. Instantly convert your PDFs, slides, and files into dynamic, interactive sessions with built-in collaboration tools, activities, and real-time assessment. From teaching to training to team building, make every presentation unforgettable. Used by millions for education, business, and professional development.
Start Free Forever
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