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
Comprehensive Cybersecurity to Safeguard Your Organization | SOCRadar Icon
Comprehensive Cybersecurity to Safeguard Your Organization | SOCRadar

See what hackers already know about your organization – and stop them from getting in.

Protect your organization from cyber threats with SOCRadar’s cutting-edge threat intelligence. Gain 360° visibility into your digital assets, monitor the dark web, and stay ahead of hackers with real-time insights. Start for free and transform your cybersecurity today.
Free Trial
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