World Congress 2025

How Unit Testing Saved My Career

July 11, 2025 13:40 – 14:10 · 30 min Stage 8
productivity java testing tdd

What this session covers

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.

Related talks at this congress

Open session

World Congress 2025

July 10, 2025 · 16:10–16:40

Stage 9

Your Testing Strategy is broken - lets fix it!

Luise Freese

Changing the world one app at a time

Luise Freese
Open session

World Congress 2025

July 10, 2025 · 15:30–16:00

Stage 6 - Red Hat

Test-Driven Development: It's easier than you think!

Eric Deandrea

Java Champion & Senior Principal Developer Advocate, Red Hat

Eric Deandrea
Open session

World Congress 2025

July 10, 2025 · 17:30–18:00

Stage 9

How to add test automation to your project: The good, the bad, and the ugly

Augustin Gottlieb

QA Director at Merkle Denmark

Augustin Gottlieb
Open session

World Congress 2025

July 11, 2025 · 09:00–09:30

Stage 5

Accessibility Test Driven Development

Maria Korneeva

Maria Korneeva, Frontend Technology Lead

Maria Korneeva
All sessions at this congress