Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when you need to set up, review, or improve Java integration tests — including generating a BaseIntegrationTest.java with WireMock for HTTP stubs, detecting HTTP client infrastructure from import signals, injecting service coordinates dynamically via System.setProperty(), creating WireMock JSON mapping files with bodyFileName, isolating stubs per test method, verifying HTTP interactions, or eliminating anti-patterns such as Mockito-mocked HTTP clients or globally registered WireMock stubs. T
.claude/skills/jabrena-132-java-testing-integration-testing/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 16% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 33% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 100% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 14% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -19% | 0% |
Set up robust integration-test infrastructure for Java services using WireMock to stub outbound HTTP dependencies.
What is covered in this Skill?
HttpClient, feign.*, retrofit2.*, RestTemplateBaseIntegrationTest base classWireMockExtension with @RegisterExtension, dynamic port allocation (dynamicPort())usingFilesUnderClasspath(wiremock), @BeforeAll + System.setProperty() for coordinate propagationbodyFileName referencing wiremock/files/)withFixedDelayWIREMOCK.verifywiremock-standalone Maven dependency (test scope)@BeforeAll stubs, Mockito-mocked HTTP clients, hardcoded ports or URLsScope: The reference is organized by examples (good/bad code patterns) for each core area. Apply recommendations based on applicable examples.
Before applying any integration test changes, ensure the project compiles. If compilation fails, stop immediately — do not proceed until resolved. After applying improvements, run full verification.
./mvnw compile or mvn compile before applying any change./mvnw clean verify or mvn clean verify after applying improvementsRun ./mvnw compile or mvn compile and stop immediately if compilation fails.
Read references/132-java-testing-integration-testing.md and detect HTTP client and external dependency integration points.
Implement BaseIntegrationTest, WireMock mappings/stubs, per-test isolation, and verification patterns.
Run ./mvnw clean verify or mvn clean verify after applying improvements.
For detailed guidance, examples, and constraints, see references/132-java-testing-integration-testing.md.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 19,452 | 17,942 | -8% | 1 | 1 | 0% | 3,677 | 4,265 | +16% | 0 | 0 | — |
case-02 | fail→fail | 20,703 | 5,943 | -71% | 1 | 1 | 0% | 3,770 | 1,013 | -73% | 0 | 0 | — |
case-03 | fail→pass | 21,468 | 24,402 | +14% | 1 | 1 | 0% | 4,271 | 5,698 | +33% | 0 | 0 | — |
case-04 | fail→pass | 6,564 | 8,319 | +27% | 1 | 1 | 0% | 1,087 | 2,177 | +100% | 0 | 0 | — |
case-05 | pass→pass | 16,282 | 11,035 | -32% | 1 | 1 | 0% | 2,931 | 2,755 | -6% | 0 | 0 | — |
case-06 | fail→fail | 12,691 | 6,542 | -48% | 1 | 1 | 0% | 2,289 | 992 | -57% | 0 | 0 | — |
case-07 | fail→pass | 14,002 | 11,801 | -16% | 1 | 1 | 0% | 2,363 | 2,692 | +14% | 0 | 0 | — |
case-22 | pass→pass | 10,833 | 8,793 | -19% | 1 | 1 | 0% | 1,996 | 2,012 | +1% | 0 | 0 | — |
case-08 | pass→pass | 13,910 | 10,279 | -26% | 1 | 1 | 0% | 2,464 | 2,392 | -3% | 0 | 0 | — |
case-09 | pass→pass | 7,296 | 6,992 | -4% | 1 | 1 | 0% | 1,372 | 1,932 | +41% | 0 | 0 | — |
case-10 | pass→pass | 12,216 | 7,006 | -43% | 1 | 1 | 0% | 2,270 | 1,884 | -17% | 0 | 0 | — |
case-11 | pass→pass | 15,509 | 12,513 | -19% | 1 | 1 | 0% | 2,659 | 2,806 | +6% | 0 | 0 | — |
case-12 | fail→fail | 9,384 | 6,372 | -32% | 1 | 1 | 0% | 1,583 | 1,674 | +6% | 0 | 0 | — |
case-13 | fail→pass | 7,326 | 1,867 | -75% | 1 | 1 | 0% | 1,097 | 884 | -19% | 0 | 0 | — |
case-14 | pass→pass | 6,826 | 2,275 | -67% | 1 | 1 | 0% | 1,154 | 920 | -20% | 0 | 0 | — |
case-15 | fail→fail | 15,669 | 12,513 | -20% | 1 | 1 | 0% | 2,682 | 2,900 | +8% | 0 | 0 | — |
case-16 | fail→pass | 14,582 | 14,004 | -4% | 1 | 1 | 0% | 2,318 | 3,295 | +42% | 0 | 0 | — |
case-17 | fail→pass | 15,445 | 11,186 | -28% | 1 | 1 | 0% | 2,863 | 2,614 | -9% | 0 | 0 | — |
case-18 | pass→pass | 4,467 | 5,807 | +30% | 1 | 1 | 0% | 818 | 1,625 | +99% | 0 | 0 | — |
case-19 | pass→pass | 10,449 | 5,601 | -46% | 1 | 1 | 0% | 1,741 | 1,541 | -11% | 0 | 0 | — |
case-20 | pass→pass | 10,365 | 7,759 | -25% | 1 | 1 | 0% | 1,775 | 1,994 | +12% | 0 | 0 | — |
case-21 | pass→pass | 13,194 | 10,120 | -23% | 1 | 1 | 0% | 2,034 | 2,329 | +15% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 20 counted toward the lift figure. The other 2 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +32 percentage points is the difference between those two pass rates over the 20 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.