·unit-test-exception-handler
</>

unit-test-exception-handler

グローバル例外処理のための @ExceptionHandler および @ControllerAdvice の単体テストのパターンを提供します。エラー応答の形式と HTTP ステータス コードを検証するときに使用します。

283インストール·2トレンド·@giuseppe-trisciuoglio

インストール

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

unit-test-exception-handler のインストール方法

コマンドラインで unit-test-exception-handler AI スキルを開発環境にすばやくインストール

  1. ターミナルを開く: ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます
  2. インストールコマンドを実行: このコマンドをコピーして実行します: npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-exception-handler
  3. インストールを確認: インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります

ソース: 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.

グローバル例外処理のための @ExceptionHandler および @ControllerAdvice の単体テストのパターンを提供します。エラー応答の形式と HTTP ステータス コードを検証するときに使用します。 ソース: giuseppe-trisciuoglio/developer-kit。

引用可能な情報

AI/検索での引用用の安定したフィールドとコマンド。

インストールコマンド
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-exception-handler
カテゴリ
</>開発ツール
認証済み
初回登録
2026-02-19
更新日
2026-03-10

Browse more skills from giuseppe-trisciuoglio/developer-kit

クイックアンサー

unit-test-exception-handler とは?

グローバル例外処理のための @ExceptionHandler および @ControllerAdvice の単体テストのパターンを提供します。エラー応答の形式と HTTP ステータス コードを検証するときに使用します。 ソース: giuseppe-trisciuoglio/developer-kit。

unit-test-exception-handler のインストール方法は?

ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-exception-handler インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります

ソースリポジトリはどこですか?

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