官术网_书友最值得收藏!

Preface

According to Google Trends, Mockito, compared to its main Java mocking framework competitors, EasyMock and jMock, has been the most widely used since 2011 and this trend has been upward ever since. Given its extremely simple and elegant API, Mockito gives you the possibility to test your application in a readable manner. Furthermore, it's syntax is so intuitive that you'll learn it in no time at all.

The very concept behind this book is to give the reader the possibility to use Mockito in order to write beautiful and comprehensive tests. The Mockito documentation as such is of very high quality, so you should always, regardless of the tool you are using, refer to it when in doubt. This book is an extension to this documentation since it covers its content but puts it in a real-life example. Where the Mockito documentation proves that the library, as such, is doing what it is supposed to do, you can come to a point where you don't actually know how to use it versus your production code. Worry not! Mockito Cookbook comes to the rescue. This book contains solutions to more than 60 problems that you may encounter throughout your Mockito testing endeavor. You will learn how to write tests that become the living documentation of your code. You will become A Mockito expert. (Since the book also explains some Mockito internals you might even be tempted to become its contributor!) And hopefully, your tests will become an example to be followed by your colleagues.

主站蜘蛛池模板: 康定县| 深水埗区| 云梦县| 衡阳市| 施甸县| 乐亭县| 黎城县| 贵南县| 舟山市| 天长市| 马边| 鄂州市| 淳安县| 广平县| 麻栗坡县| 西充县| 泰来县| 读书| 平泉县| 同心县| 玉林市| 赣州市| 阿克陶县| 开封县| 合肥市| 镇安县| 农安县| 宜黄县| 白水县| 邹城市| 瑞丽市| 呼伦贝尔市| 织金县| 山西省| 济阳县| 莆田市| 白水县| 兰州市| 从江县| 伊春市| 新平|