testing
4 article(s) with this tag
-
28 Apr 2026
💊 #23: The illusion of coverage and the combinatorial trap
Branch coverage as a tool to hunt down missing tests and dead code, and why unit tests are the 'cheat code' against the combinatorial explosion of integration tests.
-
12 Jul 2025
💊 #16: ArgumentCaptor – gotta test 'em all!
Mockito ArgumentCaptor: beyond a plain verify(), inspecting the arguments actually passed to a mocked method to test side-effects too.
-
16 Feb 2025
💊 #10: Migrating a BE architecture to a new data model
Horizontal refactoring of the repositories, vertical refactoring of services and converters, ~100 integration tests, over 500 unit tests, and a 4-branch git strategy to migrate the data model without blocking ongoing development.
-
21 Sep 2024
💊 #5: Mocking static and final fields with reflection and Unsafe (Java > 11)
How to use reflection + sun.misc.Unsafe to override a private static final Supplier in tests, bypassing the JVM's restrictions on immutable fields.