Java testing

From HoangNguyen0403/agent-skills-standard · View interactive version

Java testing is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Testing standards using JUnit 5, AssertJ, Mockito, Cucumber, and Spring Boot integration tests for Java. Use when writing or reviewing Java test behavior, including parallel execution and BDD; defer Kotlin-only tests, virtual-thread test infrastructure, and coverage-report/tooling configuration.

How to use this skill

Skill file

Java Testing Standards

**Priority: P0 (CRITICAL)**

Universal anti-slop rules (identity fixtures, tautologies, skip/focus, mock echoing, bug-first lock, sleeps, shallow

assertions, coverage): anti-slop-rules.md. Only Java deltas follow.

Stack Deltas

assertThatThrownBy(() -> ...) for exception type and message.

equivalent inputs and boundary permutations; distinct scenarios or diverging setup may stay separate methods.

data-only records; assert observable contract outcomes, not call counts or invocation sequences.

string mocks.

Anti-Patterns

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.