unit-test-exception-handler

SKILLWorkflowcommunity
v0.0.0giuseppe-trisciuoglioMITUpdated 1mo agoSource →

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 han

Community-submitted skill. Not yet reviewed by the Forge team. Full prompt content may not be available.Request review →
329Repo stars
1Clients
1Formats
1mo agoLast update
Skill
Authorgiuseppe-trisciuoglio
Version0.0.0
LicenseMIT
CategoryWorkflow
Formatsskill.md
PromptNot published
Compatibility
Claude✓ Supported
Cursor
Copilot
ChatGPT
Gemini
About

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.

Keywords
skillclaude