- Mockito Cookbook
- Marcin Grzejszczak
- 254字
- 2021-07-16 11:34:57
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.
- MySQL高可用解決方案:從主從復(fù)制到InnoDB Cluster架構(gòu)
- 大數(shù)據(jù)技術(shù)基礎(chǔ)
- 數(shù)據(jù)分析實戰(zhàn):基于EXCEL和SPSS系列工具的實踐
- Python絕技:運用Python成為頂級數(shù)據(jù)工程師
- 商業(yè)分析思維與實踐:用數(shù)據(jù)分析解決商業(yè)問題
- 數(shù)據(jù)庫系統(tǒng)原理及應(yīng)用教程(第4版)
- 深入淺出MySQL:數(shù)據(jù)庫開發(fā)、優(yōu)化與管理維護(第2版)
- Oracle高性能自動化運維
- Mastering Machine Learning with R(Second Edition)
- 數(shù)據(jù)庫技術(shù)實用教程
- 改變未來的九大算法
- Unity 2018 By Example(Second Edition)
- Node.js High Performance
- 云計算
- NoSQL數(shù)據(jù)庫原理(第2版·微課版)