This tutorial series focuses on the Mockito library – from basic to more advanced use cases, as well as integrating it with other useful testing libraries like JUnit.
本系列教程的重点是Mockito 库–从基本到更高级的使用案例,以及将其与JUnit等其他有用的测试库集成。
Mockito Basics
Mockito基础知识
Mockito Advanced
Mockito高级
-
Mocking Void Methods with Mockito (popular) -
Mock Final Classes and Methods with Mockito -
Lazy Verification with Mockito 2 -
Testing Callbacks with Mockito (popular) -
Warning: “The type MockitoJUnitRunner is deprecated” (popular) -
Kotlin with Mockito (popular) -
Mocking Static Methods With Mockito (popular) -
Mockito – Using Spies (popular) -
Using Mockito ArgumentCaptor (popular)
Mockito Integration With Other Libraries
Mockito与其他库的集成
-
Injecting Mockito Mocks into Spring Beans -
Mockito.mock() vs @Mock vs @MockBean (popular) -
Mocking a RestTemplate in Spring (popular) -
Mockito and JUnit 5 – Using ExtendWith (popular) -
Testing an Abstract Class With JUnit (popular) -
Mockito vs EasyMock vs JMockit -
Mocking of Private Methods Using PowerMock -
Introduction to PowerMock