Agent skill · software engineering · github
spring-boot-testing
Expert Spring Boot 4 testing specialist that selects the best Spring Boot testing techniques for your situation with Junit 6 and AssertJ.
Why this skill is useful
Provides specific testing techniques and patterns for Spring Boot 4 applications that the AI wouldn't reliably generate on its own.
What it needs
Requires assertj, junit, testcontainers installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 37,534 stars on the source repository.
What this skill does
Spring Boot Testing This skill provides expert guide for testing Spring Boot 4 applications with modern patterns and best practices. Core Principles 1. Test Pyramid: Unit (fast) > Slice (focused) > Integration (complete) 2. Right Tool: Use the narrowest slice that gives you confidence 3. AssertJ Style: Fluent, readable assertions over verbose matchers 4. Modern APIs: Prefer MockMvcTester and RestTestClient over legacy alternatives Which Test Slice? Scenario Annotation Reference ---------- ------------ ----------- Controller + HTTP semantics @WebMvcTest references/webmvctest.md Repository + JPA queries @DataJpaTest references/datajpatest.md REST client + external APIs @RestClientTest references/restclienttest.md JSON (de)serialization @JsonTest references/test-slices-overview.md Full application @SpringBootTest references/test-slices-overview.md Test Slices Reference references/test-slices-overview.md - Decision matrix and comparison references/webmvctest.md - Web layer with MockMvc references/datajpatest.md - Data layer with Testcontainers references/restclienttest.md - REST client testing Testing Tools Reference references/mockmvc-tester.md - AssertJ-style MockMvc (3.2+) references/mockmvc-classic.md - Traditional MockMvc (pre-3.2) references/resttestclient.md - Spring Boot 4+ REST client references/mockitobean.md - Mocking dependencies Assertion Libraries references/assertj-basics.md - Scalars, strings, booleans, dates references/assertj-collections.md - Lists, Sets, Maps, arrays Testcontainers references/testcontainers-jdbc.md - PostgreSQL, MySQL, etc. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills github/spring-boot-testing