Skip to content
U

unit-test-controller-layer

Provides patterns for unit testing REST controllers

by giuseppe-trisciuoglioFree

#7352in AI Skills
0In stores

Description

Unit test controller layer is an agent skill for writing unit tests for REST controllers in Spring. It uses MockMvc and @WebMvcTest to test…

Highlights

  • MockMvc tests for REST controllers
  • @WebMvcTest slices
  • Status codes and parameter binding
  • Validation and content negotiation
  • Exception handling tests with mocked services

Ratings & Reviews

No ratings yet

Be the first to rate unit-test-controller-layer.

People also visit

U

unit-test-exception-handler

Provides patterns for unit testing `@ExceptionHandler`

AI Skills
Get
T

test-master

Generates test files, creates mocking strategies, analyzes code coverage

AI Skills
Get
U

unit-test-wiremock-rest-api

Provides patterns for unit testing external REST APIs using WireMock

AI Skills
Get
A

api-tester

Comprehensive API testing including performance testing, load testing

AI Skills
Get
U

unit-test-service-layer

Provides patterns for unit testing service layer with Mockito

AI Skills
Get
U

unit-test-caching

Provides patterns for unit testing Spring Cache annotations

AI Skills
Get

unit-test-controller-layer FAQ

What does the skill test?

The web layer of Spring controllers: request and response mapping, status codes, validation, headers and exceptions.

How do I install it?

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

Does it need a database?

No. The controller tests mock the service dependencies, so they run in isolation.

Has the skill been security audited?

Yes. Gen Agent Trust Hub shows Pass, Socket shows Pass and Snyk shows Pass.

What are the best unit-test-controller-layer alternatives?

Popular alternatives to unit-test-controller-layer include unit-test-exception-handler, test-master and unit-test-wiremock-rest-api. See all unit-test-controller-layer alternatives

Developer Stuff

Badges