Beyond the Mockito Refcard
A series of articles about Mockito framework extending content of my Mockito Refcard published in July 2012 by DZone.
#1 – Better error messages on NPE with globally configured SmartNull
#2 – Convenient mocking beans in the Spring context with Springockito
#3 – mockito-core vs. mockito-all in Maven/Gradle-based projects
#4 – Changing a default returned value for unstubbed methods
Being a Mockito fan, I am looking forward to more Mockito goodness.
Thanks Gordon. I already planned a few topics which I hope you will find useful.
[…] post is the first part of the series Beyond the Mockito refcard. Share this:DZoneTwitterAddThisEmailPrintLike this:LikeOne blogger likes this. […]
[…] a supplement I also started a series of posts about Mockito, extending a refcard with the more advanced topics which did not fit into the base […]
[…] post is the second part of the series Beyond the Mockito refcard extending recently released my Mockito reference card. Share this:DZoneTwitterAddThisEmailPrintLike […]
[…] post is the third part of the series Beyond the Mockito refcard extending recently released my Mockito reference card. Share this:DZoneTwitterAddThisEmailPrintLike […]
[…] post is the fourth part of the series Beyond the Mockito refcard extending released some time ago my Mockito reference […]
For normal java project(No build tools) What mockito jar we can use? If we use any 2.x jar getting classNotFound errors. Can u suggest which jar have to use?
For me it’s not a “normal” java project. Unless you do really specific you lose a lot of benefits. What’s a problem to use for example Gradle initialization task to generate starting project and add Mockito and your other files there?
https://docs.gradle.org/current/userguide/build_init_plugin.html
mockito-core-2.x.x.jar can be downloaded manually from Maven Central, e.g. https://repo1.maven.org/maven2/org/mockito/mockito-core/2.9.0/