Mockito Basics: Mocking Repositories in a Maven Project (Part 1)

Giovanni Pace

Description

I'll introduce Mockito for isolating dependencies in Java tests: what a mock is, why you shouldn't test the database directly, and how to simulate a Repository. The first concrete step toward unit tests truly isolated from persistence.