什么是 unit-test-exception-handler?
提供单元测试 @ExceptionHandler 和 @ControllerAdvice 的模式以进行全局异常处理。在验证错误响应格式和 HTTP 状态代码时使用。 来源:giuseppe-trisciuoglio/developer-kit。
提供单元测试 @ExceptionHandler 和 @ControllerAdvice 的模式以进行全局异常处理。在验证错误响应格式和 HTTP 状态代码时使用。
通过命令行快速安装 unit-test-exception-handler AI 技能到你的开发环境
来源: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提供单元测试 @ExceptionHandler 和 @ControllerAdvice 的模式以进行全局异常处理。在验证错误响应格式和 HTTP 状态代码时使用。 来源:giuseppe-trisciuoglio/developer-kit。
打开你的终端或命令行工具(如 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