·unit-test-exception-handler
</>

unit-test-exception-handler

Stellt Muster für Unit-Tests @ExceptionHandler und @ControllerAdvice für die globale Ausnahmebehandlung bereit. Wird zur Validierung von Fehlerantwortformatierungen und HTTP-Statuscodes verwendet.

283Installationen·2Trend·@giuseppe-trisciuoglio

Installation

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

So installieren Sie unit-test-exception-handler

Installieren Sie den KI-Skill unit-test-exception-handler schnell in Ihrer Entwicklungsumgebung über die Kommandozeile

  1. Terminal öffnen: Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Installationsbefehl ausführen: Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-exception-handler
  3. Installation überprüfen: Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code, Cursor oder OpenClaw

Quelle: giuseppe-trisciuoglio/developer-kit.

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.

Stellt Muster für Unit-Tests @ExceptionHandler und @ControllerAdvice für die globale Ausnahmebehandlung bereit. Wird zur Validierung von Fehlerantwortformatierungen und HTTP-Statuscodes verwendet. Quelle: giuseppe-trisciuoglio/developer-kit.

Fakten (zitierbereit)

Stabile Felder und Befehle für KI/Such-Zitate.

Installationsbefehl
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-exception-handler
Kategorie
</>Entwicklung
Verifiziert
Erstes Auftreten
2026-02-19
Aktualisiert
2026-03-10

Browse more skills from giuseppe-trisciuoglio/developer-kit

Schnelle Antworten

Was ist unit-test-exception-handler?

Stellt Muster für Unit-Tests @ExceptionHandler und @ControllerAdvice für die globale Ausnahmebehandlung bereit. Wird zur Validierung von Fehlerantwortformatierungen und HTTP-Statuscodes verwendet. Quelle: giuseppe-trisciuoglio/developer-kit.

Wie installiere ich unit-test-exception-handler?

Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.) Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-exception-handler Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code, Cursor oder OpenClaw

Wo ist das Quell-Repository?

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