321-frameworks-spring-boot-testing-unit-tests SKILL.md skillA
321-frameworks-spring-boot-testing-unit-tests from jabrena/plinth is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add jabrena/plinth/321-frameworks-spring-boot-testing-unit-tests@v0.19.0Pins v0.19.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- jabrena/plinth
- Path
skills/321-frameworks-spring-boot-testing-unit-tests/SKILL.md- Versions recorded
- 6
- Latest version
- v0.19.0, committed Sep 26, 2026
- First version recorded
- Apr 26, 2026
- Size
- 3,812 bytes
- Repository stars
- 461
- License
- Apache-2.0
Use when you need to write unit tests for Spring Boot applications — including pure unit tests with @ExtendWith(MockitoExtension.class) for @Service/@Component, slice tests with @WebMvcTest and @MockitoBean for controllers, @JsonTest for JSON serialization, parameterized tests with @CsvSource/@MethodSource, test profiles, and @TestConfiguration. For framework-agnostic Java use @131-java-testing-unit-testing. For integration tests use @322-frameworks-spring-boot-testing-integration-tests. This…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Spring Boot Unit Testing with Mockito Apply Spring Boot unit testing guidelines with Mockito. **What is covered in this Skill?** - Pure unit tests: @ExtendWith(MockitoExtension.class), @Mock, @InjectMocks for @Service/@Component (no Spring context) - Slice tests: @WebMvcTest, @MockitoBean for controllers (Spring Boot 4.0.x — @MockBean removed) - @JsonTest for JSON serialization with correct JSON value assertions (extractingJsonPathStringValue, etc.) - Parameterized tests: @ParameterizedTest with @CsvSource or @MethodSource over copy-pasted methods - Java records for domain objects in tests - @TestConfiguration, @ActiveProfiles, @Primary fixed-clock beans for deterministic test setup - Modern mocking API: @MockitoBean / @MockitoSpyBean; @MockBean/@SpyBean are deprecated/removed in Boot 4.0.x **Scope:** Apply recommendations based on the reference rules and good/bad code examples. For integration tests use @322-frameworks-spring-boot-testing-integration-tests. ## Constraints Before applying any test changes, ensure the project compiles. If compilation fails, stop immediately. After applying improvements, run full verification. …
Read the whole file at its exact version.
How to install
mdr add jabrena/plinth/321-frameworks-spring-boot-testing-unit-tests@sha256:2973ed2bf1dfb56eThe line at the top of this page pins the label v0.19.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_syo3hiidnhudfgct)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 6 versions of this file, between Apr 26, 2026 and Sep 26, 2026, about one every 31 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v0.19.0 latest | 2026-09-26 | 9569c35 | 3,812 B | A | view · diff |
| v0.18.0 | 2026-08-01 | 26b0e71 | 3,812 B | A | view · diff |
| v0.17.0 | 2026-07-10 | aaee915 | 3,812 B | A | view · diff |
| v0.16.0 | 2026-06-15 | b73c9d3 | 3,498 B | A | view · diff |
| v0.15.0 | 2026-05-29 | a800339 | 3,498 B | A | view · diff |
| v0.15.0-SNAPSHOT | 2026-04-26 | 819f349 | 3,507 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3812 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
jabrena/plinth · 461 stars · license Apache-2.0 · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_syo3hiidnhudfgct GET https://markdownregistry.com/api/v1/resolve?ref=jabrena/plinth/321-frameworks-spring-boot-testing-unit-tests GET https://markdownregistry.com/api/v1/blob/2973ed2bf1dfb56e8d72bfcec69f418b4aa50433aa5e769d381087f1cbc0421f
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.