- Mockito Cookbook
- Marcin Grzejszczak
- 176字
- 2021-07-16 11:34:57
What this book covers
Chapter 1, Getting Started with Mockito, covers the Mockito configuration for JUnit and TestNG and some of its experimental features.
Chapter 2, Creating Mocks, presents numerous ways to create mocks.
Chapter 3, Creating Spies and Partial Mocks, covers the process of instantiating spy objects and partial mocks.
Chapter 4, Stubbing Behavior of Mocks, shows how to stub the method executions of mock objects.
Chapter 5, Stubbing Behavior of Spies, presents ways to stub the method executions of spies.
Chapter 6, Verifying Test Doubles, covers the process of behavior verification of test doubles.
Chapter 7, Verifying Behavior with Object Matchers, shows how to confirm that your application works as it should using Hamcrest or AssertJ.
Chapter 8, Refactoring with Mockito, covers the process of easily refactoring your production and test code, thanks to Mockito.
Chapter 9, Integration Testing with Mockito and DI Frameworks, presents ways to inject mocks into your Spring– or Guice–based applications.
Chapter 10, Mocking Libraries Comparison, shows the differences and similarities between several mocking libraries and Mockito.
- 程序員修煉之道:從小工到專家
- 云數(shù)據(jù)中心基礎(chǔ)
- Python數(shù)據(jù)分析與挖掘?qū)崙?zhàn)
- Neural Network Programming with TensorFlow
- Hadoop大數(shù)據(jù)實戰(zhàn)權(quán)威指南(第2版)
- 智能數(shù)據(jù)分析:入門、實戰(zhàn)與平臺構(gòu)建
- 數(shù)據(jù)庫技術(shù)及應(yīng)用教程
- Python金融實戰(zhàn)
- Starling Game Development Essentials
- 編寫有效用例
- Oracle數(shù)據(jù)庫管理、開發(fā)與實踐
- 二進(jìn)制分析實戰(zhàn)
- MySQL DBA修煉之道
- 企業(yè)主數(shù)據(jù)管理實務(wù)
- SIEMENS數(shù)控技術(shù)應(yīng)用工程師:SINUMERIK 840D-810D數(shù)控系統(tǒng)功能應(yīng)用與維修調(diào)整教程