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

   ### Motivation
   
   The existing `CapabilitiesToolHandlerTest` covers only the null-version 
projection. The populated projection, the null-type branch and the tool's 
stable registry name were untested.
   
   ### Changes
   
   - `populatedClusterIsProjectedVerbatim`: a cluster with a version and two 
resolved capabilities projects them verbatim and resolves through the injected 
`CapabilityResolver`.
   - `nullClusterTypeIsEmittedAsBlankString`: a cluster without a type emits an 
empty type string while capabilities stay an empty array.
   - `handlerNameShouldBeStable`: the handler advertises `rmq.capabilities` for 
catalogs and MCP callers.
   
   ### Verification
   
   ```
   mvn -B test -Dtest=CapabilitiesToolHandlerTest
   [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
   [INFO] BUILD SUCCESS
   ```


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