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

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

主站蜘蛛池模板: 南城县| 临漳县| 静海县| 墨脱县| 巴彦淖尔市| 城固县| 阿尔山市| 宜昌市| 金阳县| 新源县| 清新县| 宜州市| 益阳市| 高安市| 广宁县| 大冶市| 铜鼓县| 寻乌县| 天津市| 红河县| 布拖县| 阜南县| 额尔古纳市| 阜南县| 巴楚县| 米泉市| 德安县| 九龙城区| 凤庆县| 涟水县| 常德市| 宁蒗| 绥宁县| 明星| 桂平市| 乌拉特中旗| 岑巩县| 宝应县| 武汉市| 平果县| 东港市|