Skip to main content

unit-test-exception-handler

Provides patterns for unit testing `@ExceptionHandler` and `@ControllerAdvice` in Spring Boot applications. Validates error response formatting, mocks exceptions, verifies HTTP status codes, tests field-level validation errors, and asserts custom error payloads. Use when writing Spring exception handler tests, REST API error tests, or mocking controller advice.

Jump to install

Source facts

Repository
giuseppe-trisciuoglio/developer-kit
Last source activity
March 24, 2026 at 08:27
Detected SKILL.md language
English
Stars
329
Forks
38

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.