ramu11 commented on PR #9509:
URL: https://github.com/apache/camel-quarkus/pull/9509#issuecomment-7192719366

   > Two small things in the latest revision:
   > 
   > * `QuarkusMcpServerEngine` now declares both 
`registeredResourceTemplateNames` (line 100) and `registeredResourceTemplates` 
(line 102). Only the latter is ever read or written — the former looks like a 
leftover and can go.
   > * `testResourceTemplatesUnsupportedByQuarkusMatcherAreRefused` also 
asserts that `crm://search/orders/{id}` _is_ exposed, which is the opposite of 
what the name says. Either split the query-template case into its own test, or 
rename to something like `testResourceTemplatesUnsupportedByQuarkusMatcher`.
   > 
   > _Claude Code (Opus 5) on behalf of Alexandre Gallice_
   
   Thanks for spotting these. Addressed both suggestions in commit `ae22a04fe9` 
(`CAMEL-26360: Address resource template review nits`).
   
   1. **Unused field:** Removed the unused `registeredResourceTemplateNames` 
field from `QuarkusMcpServerEngine`. The actively used 
`registeredResourceTemplates` ownership map remains unchanged.
   
   2. **Test naming:** Renamed 
`testResourceTemplatesUnsupportedByQuarkusMatcherAreRefused` to 
`testResourceTemplateMatcherCompatibility`. The test covers both cases: 
unsupported templates are refused, while the independent query-template 
scenario remains supported.
   
   **Verification**
   
   Ran:
   
   ```bash
   ./mvnw -pl integration-tests/mcp-server -am test
   ```
   
   Result: **60 tests passed, 0 failures, 0 errors, 0 skipped.** The full Maven 
reactor completed successfully.
   
   Commit `ae22a04fe9` has been pushed to PR #9509, and I verified that the 
local and remote branch SHAs match.
   
   Thanks again for the review!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to