java-spring-testing

Test Spring Boot REST controllers with JUnit 5, Mockito, and WebMvcTest.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/edlovesjava/claudeplus --skill java-spring-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-spring-testing
Source: https://github.com/edlovesjava/claudeplus/tree/main/.claude/skills/java-spring-testing
Command: npx skills add https://github.com/edlovesjava/claudeplus --skill java-spring-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured approach to testing Spring Boot applications using JUnit 5, Mockito, and WebMvcTest, helping you write reliable backend tests faster.

Core Features & Use Cases

  • Controller tests: Use @WebMvcTest and MockMvc to verify REST endpoints.
  • Mockito patterns: Stubbing, verification, and argument capture for isolated tests.
  • Test location: Tests reside under /backend/src/test/java/com/claudeplus/demo/.

Quick Start

Run all backend tests: ./gradlew backend:test Run a specific test class: ./gradlew backend:test --tests "TaskControllerTest"