yyqdbngt opened a new pull request, #3252: URL: https://github.com/apache/rocketmq-dashboard/pull/3252
## Summary Adds `DashboardSummaryToolHandlerTest`, a first unit test for the `rmq.dashboard.summary` AI tool handler. `DashboardService` is mocked. Coverage: - the tool reports its canonical name `rmq.dashboard.summary`; - a successful execution projects the requested cluster (id/name, enum names for type/status, broker count, empty throughput series → `[]`) plus the dashboard-wide stats; - an unknown cluster id is rejected with `BusinessException` 404; - a null dashboard (unloadable) is rejected with 404; - a null stats block is tolerated and projects to the zero-valued defaults. ## Why The handler is what exposes the dashboard summary to AI tool execution; the projection and lookup semantics had no direct test. ## Testing `mvn -B test -Dtest=DashboardSummaryToolHandlerTest` — 5/5 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]
