Mockito

Simpler and better mocking for Java units
Download

Mockito Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT License
  • Price:
  • FREE
  • Publisher Name:
  • Mockito Team
  • Publisher web site:
  • http://code.google.com/p/mockito/
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 1.3 MB

Mockito Tags


Mockito Description

Simpler and better mocking for Java units Mockito is a free and open source mocking framework that lets you write beautiful tests with clean and simple API. Mockito doesn't give you hangover because the tests are very readable and they produce clean verification errors. Here are some key features of "Mockito": · Mocks concrete classes as well as interfaces · Little annotation syntax sugar - @Mock · Verification errors are clean - click on stack trace to see failed verification in test; click on exception's cause to navigate to actual interaction in code. Stack trace is always clean. · Allows flexible verification in order (e.g: verify in order what you want, not every single interaction) · Supports exact-number-of-times and at-least-once verification · Flexible verification or stubbing using argument matchers (anyObject(), anyString() or refEq() for reflection-based equality matching) · Allows creating custom argument matchers or using existing hamcrest matchers Requirements: · Java 1.5 or later What's New in This Release: · spy() method produces real partial mocks so it changes current behavior. It should not introduce any regression in sane tests, though. · Changed the way clickable actual calls are presented in verification errors. Let us know to the mailing list how do you like it. · WantedButNotInvoked verification error now shows extra information. It tells if there were no iteractions with specific mock or lists actual invocations in concise manner. Let us know to the mailing list how do you like it. · Mockito is now OSGfied but please confirm if the bundle is 100% correct. · Removed some deprecated, old and well hidden api that was most likely never used by any user. Removed api was related to global mockito configuration.


Mockito Related Software