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

132-java-testing-integration-testing

當您需要設定、審查或改進 Java 整合測試時使用 - 包括使用 WireMock 為 HTTP 存根產生 BaseIntegrationTest.java、從導入訊號檢測 HTTP 用戶端基礎結構、透過 System.setProperty() 動態注入服務座標、使用 bodyFileName 建立 WireMock JSON 映射檔案、隔離每個測試方法的全域化註冊表 取根的 HTTP Mock Mock Mock Mock 的模擬存根測試存根。 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 Mock Mock Mock Mock 的模擬存根測試存根。 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 Mock Mock Mock Mock 的模擬存根測試存根。 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