yyqdbngt opened a new pull request, #3328:
URL: https://github.com/apache/rocketmq-dashboard/pull/3328

   ## Summary
   
   Adds `TopicListToolHandlerTest`, a first unit test for the `rmq.topic.list` 
list-style AI tool handler. `MetadataService` is mocked.
   
   Coverage:
   - the tool reports its canonical name `rmq.topic.list`;
   - a successful execution delegates with cluster/type/search and the page 
window, and projects each topic row (name, blank namespace, cluster id, enum 
names for type/perm, queue counts, message count) into the paged envelope;
   - absent optional filters and paging inputs default to null/1/20;
   - a topic missing a required projection field (type) is rejected with an 
`IllegalStateException` naming the field.
   
   ## Why
   
   The tool exposes the topic inventory to AI/MCP/CLI callers; it had no direct 
test while sibling list handlers were covered.
   
   ## Testing
   
   `mvn -B test -Dtest=TopicListToolHandlerTest` — 4/4 pass; checkstyle 
(validate) clean.


-- 
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