Testing

Articles about Testing — Fundamentals.

Testing · 10/13/2026 · 9 min read · 80

How Mock, Stub and Fake Differ

Distinguish between three types of test doubles with Java 21, JUnit 5, Mockito and AssertJ examples, plus how to choose the right one and avoid common pitfalls.