Skip to content

Commit 0b30919

Browse files
authored
Docs: Clarify test method naming guidance (#16866)
1 parent b0977bb commit 0b30919

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ The `api/` module has the strongest stability guarantees — breaking changes ar
139139
- Test classes and methods should be package private unless required by inheritance.
140140
- Compute expected values, don't hardcode. Tests belong in the module that owns the code.
141141
- Write the most direct test for the bug. Parameterized tests for type variations.
142-
- JUnit 5 + AssertJ: `@Test` (no `test` prefix), `assertThat`, `assertThatThrownBy`.
142+
- JUnit 5 + AssertJ: `@Test`, `assertThat`, `assertThatThrownBy`.
143+
- Avoid using `test` prefixes for newly added tests.
143144
- `waitUntilAfter` for time-dependent tests. Separate tests over combined.
144145

145146
### REST / OpenAPI Spec

0 commit comments

Comments
 (0)