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

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.

主站蜘蛛池模板: 元阳县| 扎兰屯市| 延安市| 吉林省| 本溪市| 保山市| 双牌县| 通河县| 永靖县| 建湖县| 汝南县| 兴城市| 汝州市| 吉林省| 牟定县| 鄯善县| 黄大仙区| 象山县| 博罗县| 丘北县| 托克逊县| 林西县| 桐庐县| 登封市| 太康县| 潜山县| 阿坝县| 桑日县| 景泰县| 天祝| 正宁县| 乌什县| 慈利县| 微山县| 闵行区| 家居| 福海县| 虹口区| 忻城县| 罗平县| 乾安县|