Complete guide to testing in Spring Boot — unit tests with Mockito, controller tests (MockMVC standalone, @WebMvcTest, MockMvcTester, @SpringBootTest, WebTestClient), JPA repository tests, Testcontainers, Spring Cloud Contract, and stress testing. Use when writing or reviewing any Spring Boot test.
From javanpx claudepluginhub wesleyegberto/software-engineering-skills --plugin javaThis skill uses the workspace's default tool permissions.
references/contract-testing.mdreferences/controller-tests.mdreferences/data-jpa-test.mdreferences/stress-testing.mdreferences/test-configuration.mdreferences/testcontainers.mdreferences/unit-testing.mdSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
Guide to testing strategies and examples for Spring Boot applications.
@DataJpaTest| Topic | Reference | Load When |
|---|---|---|
| Controller Tests | references/controller-tests.md | MockMVC standalone, @WebMvcTest, MockMvcTester, @SpringBootTest + MockMvc/TestRestTemplate, WebFluxTest + WebTestClient |
| Unit Testing | references/unit-testing.md | Service/component tests with Mockito, parameterized tests, test data builders |
| JPA Tests | references/data-jpa-test.md | @DataJpaTest, TestEntityManager, H2, real database, rollback, ordered tests |
| Testcontainers | references/testcontainers.md | PostgreSQL container, DynamicPropertySource, AbstractIntegrationTest |
| Test Configuration | references/test-configuration.md | application-test.yml, @TestConfiguration, TestDataFactory |
| Contract Testing | references/contract-testing.md | Spring Cloud Contract, Consumer Driven Contracts, WireMock stubs |
| Stress Testing | references/stress-testing.md | Thread pool starvation with JMeter, JMH micro-benchmarks |
@DisplayName for descriptive test names@Transactional for automatic test data cleanup@WithMockUser) and input validation