Support us on Patreon: [ Ссылка ]
Discord Community: [ Ссылка ]
GitHub Repository: [ Ссылка ]
Unlike with integration or functional tests, where the real system is being tested as a whole, unit tests should focus on a single class. Everything else should be either a simple class or a mock. In this video, we detail Mocking in Java while explaining the difference between Mocks, Fakes and Stubs.
Timestamps:
00:00 Introduction
00:08 Why do we need Mocks?
01:35 What are Mock Objects?
05:30 Mocks vs. Fakes vs. Stubs
08:08 Mock Frameworks
09:21 Thanks for Watching!
If you found this video helpful, check other Geekific uploads:
- Object-Oriented Programming Fundamentals: [ Ссылка ]
- SOLID Principles and Best Practices: [ Ссылка ]
- Recursion Made Simple, Recursive Methods: [ Ссылка ]
- Use-Case and Sequence Diagrams: [ Ссылка ]
- Introduction to Unit-Testing with TDD: [ Ссылка ]
- Test-Driven Development Part 2, Assertions, Creating a Test: [ Ссылка ]
- Test-Driven Development Part 3, Best Practices, Test Naming Conventions: [ Ссылка ]
- Test-Driven Development Part 4, Triple A Rule, Setting Up and Tearing Down Tests: [ Ссылка ]
#Geekific #Unit-Testing #Mocks #Stubs #Fakes
Ещё видео!