Unit Testing Like a Pro - Towards a Testable Design
summary
Practical guidance for writing maintainable, fast unit tests for Java projects: covers testing priorities, identifying and fixing brittle/buggy tests, using @Before, differences between mocks and stubs, reducing test doubles by "purifying" logic, testing and refactoring legacy code, and removing @Spy usages. Emphasizes how test design smells drive refactoring toward cleaner production code and advocates principles that improve testability rather than chasing coverage percent.
AI-written summary · about
chapters (8)
- 0:00Unit testing intro
- 2:26Testable code & fixtures
- 10:18Test-driven development
- 17:46Design vs testing
- 27:46Advanced test strategies
- 37:31Refactoring & test maintenance
- 44:58Complex features & edge cases
- 51:26Q&A
related talks
48mEffective Unit Testing
51mChecking Unit Tests: Key Signs of Failing Approaches
40mA Tale of Unit Tests, Code Coverage and Code Design
46mThe Good, The Bad, and The Stubbed: A Java Unit Testing Adventure
49mDesign for Test
01h 46mHow Java developers should test their applications (RU)
42mUse testing to Develop Better Software Faster
29mTesting Applications - How to Do It Better?
