·unit-test-exception-handler
</>

unit-test-exception-handler

Provides patterns for unit testing @ExceptionHandler and @ControllerAdvice for global exception handling. Use when validating error response formatting and HTTP status codes.

283Installs·2Trend·@giuseppe-trisciuoglio

Installation

$npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-exception-handler

How to Install unit-test-exception-handler

Quickly install unit-test-exception-handler AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-exception-handler
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: giuseppe-trisciuoglio/developer-kit.

SKILL.md

View raw

This skill provides patterns for unit testing @ExceptionHandler methods and @ControllerAdvice classes using MockMvc. It covers testing exception-to-error-response transformations, HTTP status codes, error message formatting, validation error handling, and custom permission evaluators without full integration test overhead.

Exception handler not invoked: Ensure controller is registered with MockMvc and actually throws the exception.

JsonPath matchers not matching: Use .andDo(print()) to see actual response structure.

Provides patterns for unit testing @ExceptionHandler and @ControllerAdvice for global exception handling. Use when validating error response formatting and HTTP status codes. Source: giuseppe-trisciuoglio/developer-kit.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-exception-handler
Category
</>Dev Tools
Verified
First Seen
2026-02-19
Updated
2026-03-10

Browse more skills from giuseppe-trisciuoglio/developer-kit

Quick answers

What is unit-test-exception-handler?

Provides patterns for unit testing @ExceptionHandler and @ControllerAdvice for global exception handling. Use when validating error response formatting and HTTP status codes. Source: giuseppe-trisciuoglio/developer-kit.

How do I install unit-test-exception-handler?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-exception-handler Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/giuseppe-trisciuoglio/developer-kit