Mockito Fundamentals
This course will teach you how to use Mockito. Mockito is one of the most widely used libraries for Java software development, helping millions of developers to write better tests.
What you'll learn
In this course, Mockito Fundamentals, you’ll learn to apply the Mockito framework to your tests, making them easier to manage and extend. First, you’ll explore the Mockito framework and what it is used for. Next, you’ll discover how to apply basic object mocks and verify the outcomes. Additionally, you'll learn how to leverage partial mock objects. Finally, you’ll learn how to apply Mockito’s advanced features such as mocking final types, methods and using @Mock annotations. When you’re finished with this course, you’ll have the skills and knowledge of mocking objects needed to develop outstanding tests.
Table of contents
- Mockito Stub Verification 4m
- Apply Argument Matcher with Strings 6m
- Match Objects 9m
- Mockito and Asynchronous and Multi-threading Verification 5m
- Creating a Mock without Parameters 1m
- Mock a Void Method Call 3m
- Stubbing with Callbacks 6m
- Mockito Verify Invocation Order 3m
- Mock Default Return Value Configuration 14m
- Summary Mocking and Stubbing like a Pro 1m