Chapter 2. Socializing with Mockito
"The significant problems that exist in the world today cannot be solved by the level of thinking that created them."
– Albert Einstein
This chapter distills the Mockito framework to its main core and provides technical examples. No previous knowledge of Mocking is necessary.
The following topics are covered in this chapter:
- Exploring Mockito
- Working with Mockito
- Understanding the Mockito architecture
The Exploring Mockito section covers the unit test qualities and significance of Mockito in unit testing.
The Working with Mockito section explicates the Mockito framework and covers the following topics:
- Stubbing method calls
- Verifying method invocation
- Matching arguments
- Answering method calls
The Understanding the Mockito ...
Get Mockito Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.