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
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
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