Mockito
Test Doubles
Autoplay
Up next
Previous
About
This lesson describes the common types of test doubles.
In this lesson you will learn:
- What is a test double
- What are the most common types of test doubles
- What a Dummy is
- What a Fake is
- What a Stub is and an example of its use
- What a Mock is and an example of its use
- Why an object returned from Mockito.mock() isn’t necessarily a mock object
- The same object can be used as both a mock and stubs
More Info
Instructor
Links
Comments
Lessons in Mockito
Introduction and Integration
02:19
Writing Your First Unit Test with Mockito

Pro
03:10
A Guide to Writing Testable Code

Pro
02:51
What Makes a Good Unit Test

04:17
Test Doubles

Pro
04:34
Configuring Stubs

Pro
04:21
Stubs - Default Return Values

Pro
03:45
String Matchers - anyString()

Pro
02:45
Stubs - Matching on Any Parameters of a Given Type

Pro
04:36
Introduction to Mocks

02:03
Verifying a Method Was Never Called

Pro
01:46
Verifying a Method Was Called An Exact Number of Times

Pro
01:36
Verifying That a Method was Called a Minimum or Maximum Number of Times

Pro
01:17
Mocking and Stubbing Final Classes

02:58
Argument Captors

Pro
04:04

Something went wrong
Lesson added to playlist
Create new playlist
Name can't be empty