Files
java-ai-agents/claude-code-spring/.claude/rules/testing.md
T

11 lines
330 B
Markdown

---
paths:
- "src/test/**/*.java"
---
# Test rules
- JUnit 6 and AssertJ. Static-import `assertThat`.
- Name tests as sentences: `tenUnitsGetTenPercentOff`, not `testDiscount`.
- Unit-test services without Spring. Use `@SpringBootTest` only for controller wiring.
- One behaviour per test. No logic (loops, ifs) inside a test.