Skip to content
U

unit-test-exception-handler

Provides patterns for unit testing `@ExceptionHandler`

by giuseppe-trisciuoglioFree

#7418in AI Skills
0In stores

Description

This agent skill gives patterns for unit testing error handling in Spring Boot. It covers @ExceptionHandler methods and @ControllerAdvice cl…

Highlights

  • Test @ExceptionHandler methods in @ControllerAdvice classes
  • Assert HTTP status codes and error payloads
  • Check field-level validation error messages
  • Mock handler dependencies
  • Verify consistent REST error formats

Ratings & Reviews

No ratings yet

Be the first to rate unit-test-exception-handler.

People also visit

U

unit-test-controller-layer

Provides patterns for unit testing REST controllers

AI Skills
Get
U

unit-test-application-events

Provides patterns for unit testing Spring application events

AI Skills
Get
U

unit-test-security-authorization

Provides patterns for unit testing Spring Security

AI Skills
Get
U

unit-test-boundary-conditions

Provides edge case, corner case, boundary condition

AI Skills
Get
U

unit-test-caching

Provides patterns for unit testing Spring Cache annotations

AI Skills
Get
U

unit-test-scheduled-async

Provides patterns for unit testing Spring `@Scheduled`

AI Skills
Get

unit-test-exception-handler FAQ

Which annotations does it cover?

It covers @ExceptionHandler methods and @ControllerAdvice classes in Spring Boot.

How are the requests sent?

The skill uses MockMvc to send requests through the controller and check the result.

Does it check validation errors?

Yes. It covers field-level validation error responses.

How do I install it?

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

What security audits has it passed?

Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.

What are the best unit-test-exception-handler alternatives?

Popular alternatives to unit-test-exception-handler include unit-test-controller-layer, unit-test-application-events and unit-test-security-authorization. See all unit-test-exception-handler alternatives

Developer Stuff

Badges