Support us on Patreon: / geekific
Discord Community: / discord
GitHub Repository: github.com/gee...
Couple months back, we launched and continuously enriched our unit-tests and TDD series. Part of this series, was an introductory video on mocking ( • Mocks vs. Fakes vs. St... ), and how we can use mocks to improve and target specific units of our application while testing it. This video, marks the start of another series of videos in which we focus on the Mockito Library.
Timestamps:
00:00 Introduction
00:10 What is Mockito?
01:04 Mocks - Mocking with Mockito
02:44 Spies - Mockito Spy
03:49 Captors - Capturing Arguments with Mockito
04:20 Injecting Mocks and Testing Services
05:52 thenReturn vs thenAnswer vs thenThrow
07:13 Thanks for Watching!
If you found this video helpful, check other Geekific uploads:
- Object-Oriented Programming Fundamentals: • What is Object-Oriente...
- SOLID Principles and Best Practices: • SOLID Design Principle...
- Recursion Made Simple, Recursive Methods: • What is Recursion? | R...
- Use-Case and Sequence Diagrams: • UML Use-Case and Seque...
- Project Lombok Annotations Explained: • Project Lombok Annotat...
- Trees Compared and Visualized, BST vs AVL vs Red-Black vs Splay vs Heaps: • Trees Compared and Vis...
- Generics and Wildcards in Java, Invariance vs Covariance vs Contravariance: • Generics and Wildcards...
- Intro to JSON and Jackson's ObjectMapper, Parse JSON in Java, Convert Object to JSON, Jackson Library: • Intro to JSON and Jack...
- Mocks vs. Fakes vs. Stubs, Mocking in Java, Mock Frameworks: • Mocks vs. Fakes vs. St...
#Geekific #Mockito #UnitTesting #Java #JUnit
Негізгі бет Introduction to Mockito | Mock vs Spy | thenReturn vs thenAnswer | Injecting Mocks | Geekific
No video
Пікірлер: 5