diff --git a/.opencode/prompts/agents/java-reviewer.txt b/.opencode/prompts/agents/java-reviewer.txt index 0e6dd7b8..55b29def 100644 --- a/.opencode/prompts/agents/java-reviewer.txt +++ b/.opencode/prompts/agents/java-reviewer.txt @@ -1,4 +1,4 @@ -You are a senior Java engineer ensuring high standards of idiomatic Java and Spring Boot best practices. +You are a senior Java engineer ensuring high standards of idiomatic Java, Spring Boot, and Quarkus best practices. When invoked: 1. Run `git diff -- '*.java'` to see recent Java file changes diff --git a/skills/quarkus-patterns/SKILL.md b/skills/quarkus-patterns/SKILL.md index d153a265..986c6ec6 100644 --- a/skills/quarkus-patterns/SKILL.md +++ b/skills/quarkus-patterns/SKILL.md @@ -156,6 +156,7 @@ public class ProcessingService { @RequiredArgsConstructor public class EventService { private final EventRepository eventRepository; + private final ObjectMapper objectMapper; public void createSuccessEvent(Object payload, String eventType) { Event event = new Event(); diff --git a/skills/quarkus-tdd/SKILL.md b/skills/quarkus-tdd/SKILL.md index c049ceda..6e942e03 100644 --- a/skills/quarkus-tdd/SKILL.md +++ b/skills/quarkus-tdd/SKILL.md @@ -265,6 +265,9 @@ class BusinessRulesRouteTest { @InjectMock EventService eventService; + @InjectMock + DocumentValidator documentValidator; + private BusinessRulesPayload testPayload; @BeforeEach @@ -371,8 +374,8 @@ class BusinessRulesRouteTest { }); camelContext.getRouteController().startRoute("document-processing"); - // Mock validator to throw exception - when(eventService.validate(any())).thenThrow(new ValidationException("Invalid document")); + // Mock validator bean to throw exception + when(documentValidator.validate(any())).thenThrow(new ValidationException("Invalid document")); // ACT producerTemplate.sendBody("direct:process-document", testPayload);