- 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.
- ETL數(shù)據(jù)整合與處理(Kettle)
- 數(shù)據(jù)之巔:數(shù)據(jù)的本質(zhì)與未來
- 輕松學(xué)大數(shù)據(jù)挖掘:算法、場景與數(shù)據(jù)產(chǎn)品
- 分布式數(shù)據(jù)庫系統(tǒng):大數(shù)據(jù)時代新型數(shù)據(jù)庫技術(shù)(第3版)
- INSTANT Cytoscape Complex Network Analysis How-to
- 數(shù)據(jù)庫技術(shù)實用教程
- 網(wǎng)站數(shù)據(jù)庫技術(shù)
- 圖數(shù)據(jù)實戰(zhàn):用圖思維和圖技術(shù)解決復(fù)雜問題
- 計算機(jī)應(yīng)用基礎(chǔ)教程上機(jī)指導(dǎo)與習(xí)題集(微課版)
- PostgreSQL指南:內(nèi)幕探索
- 爬蟲實戰(zhàn):從數(shù)據(jù)到產(chǎn)品
- 大數(shù)據(jù)數(shù)學(xué)基礎(chǔ)(Python語言描述)
- Oracle 11g+ASP.NET數(shù)據(jù)庫系統(tǒng)開發(fā)案例教程
- 大數(shù)據(jù)時代系列(套裝9冊)
- 大數(shù)據(jù)測試技術(shù):數(shù)據(jù)采集、分析與測試實踐(在線實驗+在線自測)