TDD: seriously, try it!
summary
Shows a concrete TDD workflow by writing Java unit and integration tests, implementing a FilmRecommendationService and FilmRepository, and getting tests green with red‑green‑refactor. Uses JUnit 5 plus AssertJ-style assertions, mocks the repository for the unit test and runs an integration test with Testcontainers+Postgres to verify SQL ordering by average rating. Demonstrates the code that gets written (service + SQL repository), the tests that pass, and notes the steep learning curve and time investment.
AI-written summary · about
chapters (23)
- 0:00Intro
- 0:30Who am I
- 3:40TDD history
- 4:54Imagine
- 9:49TDD cycle
- 12:36Good habits
- 13:32Naming
- 14:30Technique
- 17:06Start slowly
- 17:36Pairing
- 18:44Live Coding
- 19:20The Idea
- 20:28Movie Recommendation Service
- 20:51Dependencies
- 21:51Fill Recommendation Service
- 22:46Code
- 27:16Solution
- 35:02Test
- 35:59Integration
- 39:19Implementation
- 47:42Recommendations
- 48:51Conclusion
- 49:54Questions
related talks
58mTDD for database related code, how is it possible?
45mTDD makes you a better everyday developer
29mAh, Wonderful TDD — Peace of Mind for Apps and Engineers
46mHow John Started to Like TDD (Instead of Hating It)
47mTDD & DDD from the Ground Up
01h 01mTDD Revisited
01h 13mTDD Revisited
38mDeliver Better Code Faster With TDD
