Write, review and fix Java unit tests with JUnit 5 and JUnit 6 (Jupiter), AssertJ and Mockito: assertions, parameterized and nested tests, mocking rules, deterministic time and randomness, Surefire vs Failsafe, JaCoCo coverage, optional PIT mutation testing, and guardrails for agents (never skip or delete failing tests). Use when adding, refactoring or debugging tests in Maven or Gradle projects.
安装
npx skills add github/awesome-copilot --skill java-junitnpx skills add github/awesome-copilot --skill java-junit -a claude-code -gnpx skills add github/awesome-copilot --skill java-junit -a codex -ggemini skills install https://github.com/github/awesome-copilot.git --path skills/java-junitgh skill install github/awesome-copilot java-junitgit clone --depth 1 https://github.com/github/awesome-copilot /tmp/github__awesome-copilot
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/github__awesome-copilot/skills/java-junit ~/.claude/skills/java-junit # Claude Code
cp -R /tmp/github__awesome-copilot/skills/java-junit ~/.agents/skills/java-junit # Codex, Cursor, Gemini CLI, Copilot, OpenCode