Skip to content

ai-unified-process/aiup-spring-boot

v3.2.0

AI Unified Process Spring Boot layers - service and REST API implementation and tests

spring-rest-test

Writes the REST API tests of a use case (UC-XXX) in a Spring Boot application: status codes, Location headers, the JSON contract (field names, date formats), RFC 9457 Problem Details bodies, and — as the integration layer of a REST service or behind an Angular client — every business rule's allowed and rejected request at the boundary, through the real service and database. Uses MockMvcTester against the full stack or live HTTP with RestTestClient and Testcontainers, detecting and keeping a project's existing convention (including MockMvc or RestAssured) and asking before the first API test. Classes are named UC001<Name>ApiTest and every method carries @UseCase. Use when the user asks to "test the REST API", "test the controller", "test the endpoints", "write API tests", "check the status codes", or mentions MockMvc, MockMvcTester, RestTestClient, RestAssured, ProblemDetail tests, or Spring Boot web tests. Normally run by /use-case-test as the integration layer; it can also be run directly.

Read SKILL.md at the source

Pinned to revision dbb4e27b6d25, so it is the text this page describes rather than whatever the author pushed since.

Files

Every link opens the file at its source, pinned to the revision this page describes.