Skip to main content
Back to registry

unit-test-exception-handler

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...

Installs288
Install command
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-exception-handler
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
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. Use this skill when: 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. Status code mismatch : Verify @ResponseStatus annotation on handler method. - Testing @ExceptionHandler methods in @ControllerAdvice - Testing exception-to-error-response transformations - Verifying HTTP status codes for different exception types - Testing error message formatting and localization - Want fast exception handler tests without full integration tests - Create test controllers : Create simple test controllers that throw exceptions to test handler behavior - Register ControllerAdvice : Use setControllerAdvice() when building MockMvc to register exception handlers - Test all exception types : Verify each @ExceptionHandler method handles its specific exception type - Verify HTTP status codes : Use @ResponseStatus assertions to verify correct status codes - Test error response structure : Verify error responses contain all required...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does unit-test-exception-handler do?

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...

Is unit-test-exception-handler good?

unit-test-exception-handler does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does unit-test-exception-handler work with?

unit-test-exception-handler currently lists compatibility with codex, gemini-cli, opencode, cursor, github-copilot, claude-code.

What are alternatives to unit-test-exception-handler?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

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

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

Related skills

More from giuseppe-trisciuoglio/developer-kit

typescript-docs

by giuseppe-trisciuoglio/developer-kit

621

Deliver production-ready TypeScript documentation that serves multiple audiences through layered documentation architecture. Generate API docs with TypeDoc, create architectural decision records, and maintain comprehensive code examples.

Software EngineeringFrontend and DesignFirst seen Jan 19, 2026

nestjs

by giuseppe-trisciuoglio/developer-kit

596

This skill provides comprehensive guidance for building NestJS applications with TypeScript, including integration with Drizzle ORM for database operations. It covers all major aspects of NestJS development from basic module structure to advanced patterns like microservices and GraphQL.

Software EngineeringFrontend and DesignFirst seen Jan 19, 2026

spring-boot-test-patterns

by giuseppe-trisciuoglio/developer-kit

443

This skill provides comprehensive guidance for writing robust test suites for Spring Boot applications. It covers unit testing with Mockito, integration testing with Testcontainers, performance-optimized slice testing patterns, and best practices for maintaining fast feedback loops.

Software EngineeringFrontend and DesignFirst seen Feb 2, 2026

spring-boot-rest-api-standards

by giuseppe-trisciuoglio/developer-kit

409

This skill provides comprehensive guidance for building RESTful APIs in Spring Boot applications with consistent design patterns, proper error handling, validation, and architectural best practices based on REST principles and Spring Boot conventions.

Software EngineeringFrontend and DesignFirst seen Feb 2, 2026
Related skills

Alternatives in Software Engineering