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

  • 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.

主站蜘蛛池模板: 汉阴县| 神农架林区| 资溪县| 江阴市| 大安市| 洪江市| 平谷区| 万安县| 通化县| 中牟县| 甘德县| 东台市| 德州市| 金溪县| 开阳县| 蓬莱市| 济宁市| 泸溪县| 五台县| 皋兰县| 池州市| 马尔康县| 临颍县| 藁城市| 大安市| 南涧| 瑞金市| 黄平县| 时尚| 五河县| 景德镇市| 土默特右旗| 丽江市| 台中市| 泾阳县| 油尖旺区| 温州市| 肃宁县| 扬中市| 视频| 库尔勒市|