We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80b7d3d commit b778794Copy full SHA for b778794
CLAUDE.md
@@ -133,6 +133,10 @@ When creating or modifying MCP tools:
133
- AssertJ fluent: `assertThat(x).isEqualTo(y)` not `assertEquals(y, x)`
134
- Naming: `methodName_should_expectedBehavior_when_condition()`
135
- Example: `getVulnerability_should_return_data_when_valid_id()`
136
+- **Anonymous builders**: Use `AnonymousXxxBuilder` pattern for complex mocks (see `AnonymousApplicationBuilder.java`)
137
+ - Provides valid defaults for all fields with lenient stubbing
138
+ - Tests only specify fields they care about: `AnonymousApplicationBuilder.validApp().withName("MyApp").build()`
139
+ - Avoids over-mocking anti-pattern and UnnecessaryStubbingException
140
141
### Security Considerations
142
0 commit comments