323-frameworks-spring-boot-testing-acceptance-tests
Skill2 starsChanged 9 months agoApache-2.0View on GitHub
Use when you need to implement acceptance tests from a Gherkin .feature file for Spring Boot apps — finding @acceptance scenarios, happy path with RestAssured, @SpringBootTest, Testcontainers for DB/Kafka, WireMock for external REST. Requires .feature file in context. Part of the skills-for-java project
2 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- jabrena/cursor-rules-javaedited, first seen Oct 17, 2026
- jabrena/plinthedited, first seen Oct 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- jabrena/plinth★ 46932% same
- jabrena/cursor-rules-java★ 46132% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository38 other files it gives its agents.
- 014-agile-create-user-storySkill
- 020-planning-enhance-ai-plan-modeSkill
- 030-architecture-adr-generalSkill
- 031-architecture-adr-functional-requirementsSkill
- 032-architecture-adr-non-functional-requirementsSkill
- 033-architecture-diagramsSkill
- 110-java-maven-best-practicesSkill
- 111-java-maven-dependenciesSkill
- 112-java-maven-pluginsSkill
- 113-java-maven-documentationSkill
- 121-java-object-oriented-designSkill
- 122-java-type-designSkill
- 123-java-exception-handlingSkill
- 124-java-secure-codingSkill
- 125-java-concurrencySkill
- 128-java-genericsSkill
- 130-java-testing-strategiesSkill
- 131-java-testing-unit-testingSkill
- 132-java-testing-integration-testingSkill
- 133-java-testing-acceptance-testsSkill
- 141-java-refactoring-with-modern-featuresSkill
- 142-java-functional-programmingSkill
- 143-java-functional-exception-handlingSkill
- 144-java-data-oriented-programmingSkill
- 151-java-performance-jmeterSkill
- 161-java-profiling-detectSkill
- 162-java-profiling-analyzeSkill
- 163-java-profiling-refactorSkill
- 164-java-profiling-verifySkill
- 170-java-documentationSkill
- 180-java-observability-loggingSkill
- 200-agents-mdSkill
- 301-frameworks-spring-boot-coreSkill
- 302-frameworks-spring-boot-restSkill
- 312-frameworks-spring-data-jdbcSkill
- 321-frameworks-spring-boot-testing-unit-testsSkill
- 322-frameworks-spring-boot-testing-integration-testsSkill
- 324-frameworks-spring-boot-testing-e2e-local-testsSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Before applying any acceptance test changes, ensure the Gherkin .feature file is in context and the project compiles.
- Very specific: line 34
MANDATORY: Run ./mvnw compile or mvn compile before applying any change
- Distinctive: line 35
SAFETY: If compilation fails, stop immediately and do not proceed
- Very specific: line 36
VERIFY: Run ./mvnw clean verify or mvn clean verify after applying improvements
- Distinctive: line 37
BEFORE APPLYING: Read the reference for detailed examples, good/bad patterns, and constraints
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Spring Boot acceptance tests from Gherkin
Implement acceptance tests from Gherkin feature files in Spring Boot projects. Given a .feature file in context, find @acceptance-tagged scenarios and implement happy-path tests with @SpringBootTest, RestAssured, Testcontainers, and WireMock.
What is covered in this Skill?
- Parse Gherkin .feature files to find scenarios tagged @acceptance or @acceptance-tests
- Implement happy-path acceptance tests (one test per scenario)
- @SpringBootTest(webEnvironment = RANDOM_PORT), @LocalServerPort
- @DynamicPropertySource for Testcontainers and WireMock coordinates
- RestAssured for REST API testing (given/when/then, status codes, JSON body assertions)
- Testcontainers for databases (PostgreSQL, etc.) and Kafka
- WireMock for stubbing external REST APIs
- BaseAcceptanceTest base class with Spring Boot test utilities
- Given-When-Then structure mapping Gherkin steps to setup, request, and assertions
Preconditions: (1) The Gherkin .feature file must be in context. (2) The project must use Spring Boot. For framework-agnostic Java, use @133-java-testing-acceptance-tests.
Scope: Implements only happy-path scenarios. Use the reference for detailed examples and constraints.
Constraints
Before applying any acceptance test changes, ensure the Gherkin .feature file is in context and the project compiles. If compilation fails or the feature file is missing, stop immediately.
- PRECONDITION: The Gherkin .feature file MUST be in context; the project MUST use Spring Boot
- MANDATORY: Run
./mvnw compileormvn compilebefore applying any change - SAFETY: If compilation fails, stop immediately and do not proceed
- VERIFY: Run
./mvnw clean verifyormvn clean verifyafter applying improvements - BEFORE APPLYING: Read the reference for detailed examples, good/bad patterns, and constraints
When to use this skill
- Review Java code for Spring Boot acceptance tests
- Apply best practices for Spring Boot acceptance tests in Java code
Reference
For detailed guidance, examples, and constraints, see references/323-frameworks-spring-boot-testing-acceptance-tests.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

