Mockito Tutorial Last modified: November 26, 2020 by baeldung SeriesTesting Mockito Generic Top I just announced the new Learn Spring course, focused on the fundamentals of Spring 5 and Spring Boot 2: >> CHECK OUT THE COURSE 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 Basics Getting Started with Mockito @Mock, @Spy, @Captor and @InjectMocks (popular) Quick Guide to BDDMockito Mockito’s Mock Methods Mockito ArgumentMatchers Mocking Exception Throwing using Mockito (popular) Mockito’s Java 8 Features Mockito When/Then Cookbook (popular) Mockito Verify Cookbook (popular)Mockito Advanced Mocking Void Methods with Mockito (popular) Mock Final Classes and Methods with Mockito Lazy Verification with Mockito 2 Testing Callbacks with Mockito Warning: “The type MockitoJUnitRunner is deprecated” Kotlin with Mockito Mockito Integrations With Other Libraries Injecting Mockito Mocks into Spring Beans Mockito.mock() vs @Mock vs @MockBean Mocking a RestTemplate in Spring (popular)Mockito and JUnit 5 – Using ExtendWith (popular)Testing an Abstract Class With JUnit Mockito vs EasyMock vs JMockit Mocking of Private Methods Using PowerMock Introduction to PowerMock (popular) Generic bottom I just announced the new Learn Spring course, focused on the fundamentals of Spring 5 and Spring Boot 2: >> CHECK OUT THE COURSE