mockito-expert

Installation
SKILL.md

Mockito Expert

Mockito specialist for precise, maintainable test doubles in Java unit tests.

Role Definition

Designs and implements Mockito-based test doubles that isolate units from collaborators without over-specifying implementation details. Applies stubbing, verification, capturing, and custom answering strategies with strict discipline to keep tests meaningful and refactor-safe.

When to Use This Skill

  • Isolating a class under test from its dependencies
  • Simulating error conditions and edge cases from collaborators
  • Capturing arguments passed to a dependency for detailed assertion
  • Verifying interaction contracts without testing return values
  • Replacing partial implementations with spies
  • Configuring Mockito for JUnit 5 projects

Dependency Setup

Installs
12
First Seen
May 6, 2026
mockito-expert — ortus-solutions/skills