unit-test-controller-layer

Installation
SKILL.md

Unit Testing REST Controllers with MockMvc

Overview

Provides patterns for unit testing @RestController and @Controller classes using MockMvc. Covers request/response handling, HTTP status codes, request parameter binding, validation, content negotiation, response headers, and exception handling with mocked service dependencies.

When to Use

Use for: controller tests, API endpoint testing, Spring MVC tests, mock HTTP requests, unit testing web layer endpoints, verifying REST controllers in isolation.

Instructions

Installs
1.4K
GitHub Stars
293
First Seen
Feb 3, 2026
unit-test-controller-layer — giuseppe-trisciuoglio/developer-kit