·132-java-testing-integration-testing
</>

132-java-testing-integration-testing

当您需要设置、审查或改进 Java 集成测试时使用 - 包括使用 WireMock 为 HTTP 存根生成 BaseIntegrationTest.java、从导入信号检测 HTTP 客户端基础结构、通过 System.setProperty() 动态注入服务坐标、使用 bodyFileName 创建 WireMock JSON 映射文件、隔离每个测试方法的存根、验证 HTTP 交互或消除反模式,例如 Mockito 模拟的 HTTP 客户端或全局注册的 WireMock 存根。 java 技能项目的一部分

12安装·2热度·@jabrena

安装

$npx skills add https://github.com/jabrena/cursor-rules-java --skill 132-java-testing-integration-testing

如何安装 132-java-testing-integration-testing

通过命令行快速安装 132-java-testing-integration-testing AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/jabrena/cursor-rules-java --skill 132-java-testing-integration-testing
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:jabrena/cursor-rules-java。

SKILL.md

查看原文

Set up robust integration-test infrastructure for Java services using WireMock to stub outbound HTTP dependencies.

Prerequisites: Run ./mvnw compile or mvn compile before applying any change. If compilation fails, stop immediately and do not proceed — compilation failure is a blocking condition.

Core areas: Infrastructure topology detection (scanning imports for HttpClient, feign., retrofit2., RestTemplate, etc.), abstract BaseIntegrationTest base class, WireMockExtension with @RegisterExtension, dynamic port allocation (dynamicPort()), usingFilesUnderClasspath("wiremock"), @BeforeAll + System.setProperty() for coordinate propagation, concrete test classes extending the base class, WireMock JSON mapping f...

当您需要设置、审查或改进 Java 集成测试时使用 - 包括使用 WireMock 为 HTTP 存根生成 BaseIntegrationTest.java、从导入信号检测 HTTP 客户端基础结构、通过 System.setProperty() 动态注入服务坐标、使用 bodyFileName 创建 WireMock JSON 映射文件、隔离每个测试方法的存根、验证 HTTP 交互或消除反模式,例如 Mockito 模拟的 HTTP 客户端或全局注册的 WireMock 存根。 java 技能项目的一部分 来源:jabrena/cursor-rules-java。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/jabrena/cursor-rules-java --skill 132-java-testing-integration-testing
分类
</>开发工具
认证
收录时间
2026-03-10
更新时间
2026-03-10

Browse more skills from jabrena/cursor-rules-java

快速解答

什么是 132-java-testing-integration-testing?

当您需要设置、审查或改进 Java 集成测试时使用 - 包括使用 WireMock 为 HTTP 存根生成 BaseIntegrationTest.java、从导入信号检测 HTTP 客户端基础结构、通过 System.setProperty() 动态注入服务坐标、使用 bodyFileName 创建 WireMock JSON 映射文件、隔离每个测试方法的存根、验证 HTTP 交互或消除反模式,例如 Mockito 模拟的 HTTP 客户端或全局注册的 WireMock 存根。 java 技能项目的一部分 来源:jabrena/cursor-rules-java。

如何安装 132-java-testing-integration-testing?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/jabrena/cursor-rules-java --skill 132-java-testing-integration-testing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/jabrena/cursor-rules-java