> Markdown version of [/events/world-congress-2025/sessions/847-how-unit-testing](https://www.wearedevelopers.com/events/world-congress-2025/sessions/847-how-unit-testing). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # How Unit Testing Saved My Career - **Date:** Friday, Jul 11, 2025 - **Time:** 13:40–14:10 (30 min) - **Room:** Stage 8 - **Event:** World Congress 2025 - **Tags:** java, productivity, tdd, testing ## Recording [Watch recording](https://www.wearedevelopers.com/videos/1642-how-unit-testing-saved-my-career) ## Description When I first started programming, debugging unexpected behavior was frustrating—until I discovered unit testing. Testing not only validated my work but also improved my code’s structure. However, as I gained experience, I found that overly complex tests sometimes made things worse. Messy unit and integration tests obscured what was actually being tested, making failures difficult to diagnose and eroding trust in the tests themselves. In this talk, we will explore how to harness the power of testing without unnecessary complexity. Using JUnit and Mockito, I will demonstrate how to write clear, purposeful tests that align with what you truly need to validate. We will also discuss how writing testable code naturally leads to cleaner, more maintainable, and more readable code. By the end, you will have a reliable testing strategy that simplifies development and improves code quality—whether you are new to testing or struggling with complex test setups. ## Speaker ### [Annelore Egger](https://www.wearedevelopers.com/@annelore-egger) Software Engineer, OpenValue Switzerland ## Related talks at this congress - [Your Testing Strategy is broken - lets fix it!](https://www.wearedevelopers.com/events/world-congress-2025/sessions/668-your-testing) — Luise Freese - [Test-Driven Development: It's easier than you think!](https://www.wearedevelopers.com/events/world-congress-2025/sessions/641-test-driven) — Eric Deandrea - [How to add test automation to your project: The good, the bad, and the ugly](https://www.wearedevelopers.com/events/world-congress-2025/sessions/701-how-to-add-test) — Augustin Gottlieb - [Accessibility Test Driven Development](https://www.wearedevelopers.com/events/world-congress-2025/sessions/717-accessibility-test) — Maria Korneeva