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

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.

主站蜘蛛池模板: 崇信县| 交城县| 拜泉县| 武宁县| 白沙| 建阳市| 房产| 佛山市| 金平| 图们市| 耿马| 岳池县| 潞城市| 建昌县| 卢氏县| 吉首市| 莲花县| 康定县| 莎车县| 观塘区| 司法| 原平市| 苏尼特右旗| 禄丰县| 山东| 彩票| 天祝| 施秉县| 玉林市| 湖北省| 龙游县| 武陟县| 绥化市| 于田县| 阜康市| 淮滨县| 灵寿县| 儋州市| 新沂市| 大同市| 远安县|