Tagged articles

Test Naming

2 articles · Page 1 of 1
The Dominant Programmer
The Dominant Programmer
Jun 6, 2026 · Backend Development

Mockito Unit Testing: A Complete Guide to Testing Java Service Layers

This article explains unit testing fundamentals, compares unit and integration tests, introduces Mockito's core annotations and APIs, walks through a full order‑resend example with detailed test cases, and covers best‑practice methodologies, advanced techniques, common pitfalls, naming conventions, and how to run the tests.

Given-When-ThenJUnit5Java
0 likes · 21 min read
Mockito Unit Testing: A Complete Guide to Testing Java Service Layers
Continuous Delivery 2.0
Continuous Delivery 2.0
Jun 9, 2020 · Fundamentals

Writing Descriptive Test Method Names and Focusing on Public API

The article explains why test method names should describe the behavior being verified rather than the implementation, shows how clear naming reduces the need to read test code, and discusses the importance of testing public APIs instead of internal implementation details.

Test NamingUnit Testingpublic API
0 likes · 6 min read
Writing Descriptive Test Method Names and Focusing on Public API