~/talk

Mocks, Fakes, Stubs – Is There a Difference? Do You Still Need Them?

TalkinGermanat code.talks 2023 · 2023-09-14..09-15· [testing]
slides:none on file

The talk explains different kinds of test doubles (mocks, fakes, stubs, etc.), how they differ, and how each impacts test speed, stability, and maintenance. It shows practical Java live-coding examples of using these doubles in unit and integration tests, and concludes with a brief look at a new "Nullable" concept as an evolution of existing patterns.

AI-written summary · about

  1. 0:00Introduction
  2. 1:12Why this talk?
  3. 2:36Test basics
  4. 4:44X-Unit patterns
  5. 7:55Integration tests live
  6. 11:07Calc engine live
  7. 13:13Calculator with dependency live
  8. 15:43Mocks vs Stubs live
  9. 19:37Mocks with verifications live
  10. 23:11Fakes and lightweight impls live
  11. 26:46Refactoring live
  12. 30:24Future of test patterns
  13. 33:34In-memory DBs and Testcontainers
  14. 36:03Mocking external code
  15. 37:48Testing without mocks
  16. 40:39Modern mocking use cases
  17. 41:43Conclusion
  18. 42:06Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.