132-java-testing-integration-testing
CommunityRobust Java integration tests with WireMock.
Software Engineering#java#integration-testing#test-automation#wiremock#http-stubs#base-integration-test
Authorjabrena
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Java services often struggle to reliably test integration points with external HTTP systems. This skill provides a guided approach to set up, review, or improve Java integration tests using WireMock stubs, and generates a reusable BaseIntegrationTest scaffold.
Core Features & Use Cases
- Detects outbound HTTP dependencies in code (HttpClient, RestTemplate, Feign, Retrofit, OkHttp) and proposes a REST-testing topology based on WireMock.
- Generates a tailored BaseIntegrationTest.java with WireMockExtension, @RegisterExtension, and a @BeforeAll block that propagates coordinates via System.setProperty().
- Creates starter WireMock mappings under src/test/resources/wiremock/mappings per identified service.
- Encourages per-test stub registration and verification of HTTP interactions to keep tests isolated and deterministic.
- Documents anti-patterns to avoid (e.g., global stubs, mocked HTTP clients) to preserve real HTTP-pipeline testing.
Quick Start
Use a clean Maven build to validate compilation and trigger the scaffolding workflow.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: 132-java-testing-integration-testing Download link: https://github.com/jabrena/cursor-rules-java/archive/main.zip#132-java-testing-integration-testing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.