java-testing
Design JUnit 5, Mockito, and Spring Boot tests with clear scope and business assertions.
Skill by cong1ling
Chalk Labs
Need help deploying java-testing?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/cong1ling-java-testing
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/java-testing
What's inside
- Skill name
java-testing- Description
- Design JUnit 5, Mockito, and Spring Boot tests with clear scope and business assertions.
- License
- MIT
- Instructions
- 69 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Java Testing Use this skill when adding or improving test coverage for Java backend code. ## First decide the test scope Choose the smallest test type that gives confidence: - **Unit test**: pure business logic, deterministic branching, mapper-independent rules - **Slice test**: web layer, JSON binding, validation, repository slice, or focused Spring wiring - **Integration test**: full flow involving framework wiring, database behavior, or real infrastructure contracts ## Rules - Test business behavior, not private implementation details. - Prefer explicit assertions over broad “no exception” checks. - Avoid loading the full Spring context unless it validates something important. - Mock only boundaries you truly do not want to exercise. - Prioritize high-risk and high-value paths first. ## Workflow 1. **Identify the behavior under test** - happy path - validation failure - business rule rejection - persistence edge case - side effect such as cache/message interaction 2. **Choose the smallest useful test set** - one happy path - one representative negative path - one edge case only if it changes behavior meaningfully 3. **Define clear assertions** - returned data - thrown exception type/message if stable - state transition - persistence result - side-effect occurrence or non-occurrence 4. **Minimize setup noise** - build small fixtures - avoid giant object graphs unless necessary - use helper builders only when they improve readability 5. **Call out what should not be tested here** - framework internals - duplicate coverage from lower-cost tests - unstable implementation details ## Output format 1. Recommended test type 2. Behaviors to cover 3. Suggested test cases 4. Key assertions 5. Setup notes 6. Risks not covered by this test layer ## JUnit 5 / Spring guidance - Prefer JUnit 5 naming that reads like behavior. - Use Mockito for service-boundary isolation, not as the main subject of assertions. - Use `@WebMvcTest` for request/response and validation-focused checks. - Use `@DataJpaTest` or equivalent slice patterns where appropriate. - Use full `@SpringBootTest` selectively for wiring-sensitive paths.
From cong1ling/pi-java-enterprise, MIT.
More from cong1ling/pi-java-enterprise
- 0.491score
springboot-configuration-troubleshooting
cong1ling
Troubleshoot Spring Boot configuration, profile, bean, and auto-configuration issues.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
java-code-review
cong1ling
Review Java backend code for layering, correctness, maintainability, and operational safety.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
java-refactoring
cong1ling
Guide safe, incremental refactoring in Java backend projects.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
kafka-event-handling
cong1ling
Design and troubleshoot Kafka producer and consumer workflows in enterprise Java services.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
java-debugging
cong1ling
Troubleshoot Java backend failures through reproduction, evidence, root cause, and verification.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
mybatis-plus-crud
cong1ling
Guide CRUD and query development with MyBatis-Plus in enterprise Java projects.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
redis-cache-design
cong1ling
Design Redis caching strategy with clear keys, TTL, invalidation, and consistency trade-offs.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
springboot-api-development
cong1ling
Guide day-to-day Spring Boot API development for enterprise Java backend projects.
SkillCFreshness: C★ 1Claude Code +9 - 0.486score
mysql-performance-troubleshooting
cong1ling
Troubleshoot SQL and index performance issues using evidence from schema and execution plans.
SkillCFreshness: C★ 1Claude Code +9 - 0.486score
terminology-guide
cong1ling
Provide consistent Chinese and English terminology for enterprise Java package content.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 7, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/cong1ling/pi-java-enterprise
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from cong1ling
- 0.491score
springboot-configuration-troubleshooting
cong1ling
Troubleshoot Spring Boot configuration, profile, bean, and auto-configuration issues.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
java-code-review
cong1ling
Review Java backend code for layering, correctness, maintainability, and operational safety.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
java-refactoring
cong1ling
Guide safe, incremental refactoring in Java backend projects.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
kafka-event-handling
cong1ling
Design and troubleshoot Kafka producer and consumer workflows in enterprise Java services.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
java-debugging
cong1ling
Troubleshoot Java backend failures through reproduction, evidence, root cause, and verification.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
mybatis-plus-crud
cong1ling
Guide CRUD and query development with MyBatis-Plus in enterprise Java projects.
SkillCFreshness: C★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get java-testing running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
java-testing skill. Agent Mart. https://agentmart.dev/skills/cong1ling-java-testing (last updated 2026-10-24)