java-testing

Generate and execute Spring Boot integration tests with Testcontainers and AOP-based fault injection.

2|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/dd-xiaozhi/dev-agent-flow --skill java-testing-dd-xiaozhi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-testing
Source: https://github.com/dd-xiaozhi/dev-agent-flow/tree/main/.claude/skills/java-testing
Command: npx skills add https://github.com/dd-xiaozhi/dev-agent-flow --skill java-testing-dd-xiaozhi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the inconsistency and technical debt in Java/Spring Boot testing by enforcing team-wide standards for integration tests, error handling, and third-party fault simulation.

Core Features & Use Cases

  • Testing Adapter: Acts as an automated testing agent that generates, executes, and validates integration tests based on task specifications.
  • Fault Injection: Provides a standardized AOP-based mechanism to simulate third-party failures like timeouts, rate limits, and expired tokens using HTTP headers.
  • Contract Enforcement: Ensures all error responses follow a strict JSON schema and mandates the use of integration test patterns like Testcontainers and Awaitility.

Quick Start

Use the java-testing skill to generate and run integration tests for the current story based on the specifications in the docs folder.

Frequently Asked Questions about java-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize Spring Boot integration tests across my team?

You can standardize Spring Boot integration tests by mapping task specifications to automated test suites, enforcing consistent test naming, assertion patterns, and environment isolation using Testcontainers and Awaitility.

How does fault injection work for third-party integrations in Java?

Fault injection for third-party integrations uses an AOP-based mechanism to simulate failures like timeouts, rate limits, and expired tokens via HTTP headers, validating error contracts across complex service layers.

Can I use this testing adapter with my existing Spring Boot project?

Yes, the testing adapter integrates with Spring Boot projects by generating, executing, and validating integration tests based on task specifications found in your docs folder, requiring no additional dependencies.

What is the best way to validate error response contracts in Java integration testing?

The best way to validate error response contracts is enforcing a strict JSON schema for all error responses while mandating integration test patterns like Testcontainers and Awaitility for consistent environment isolation.

Why should I use Testcontainers and Awaitility for Java integration testing?

Testcontainers and Awaitility ensure reliable environment isolation and asynchronous condition testing, eliminating inconsistency and technical debt in Spring Boot testing by mandating standardized integration test patterns.