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

   ### Summary
   
   Adds the first dedicated unit test suite for `TestConnectionDTO`, the 
payload of the pre-registration cluster connectivity probe.
   
   The DTO only requires a non-blank `namesrvAddr`, which may hold a 
semicolon-separated cluster address list. The tests cover the required-field 
contract and the multi-address form.
   
   ### Changes
   
   - 
`server/src/test/java/org/apache/rocketmq/studio/cluster/broker/TestConnectionDTOTest.java`
     - `acceptsNamesrvAddr`: a single endpoint passes validation.
     - `rejectsMissingNamesrvAddr` / `rejectsBlankNamesrvAddr`: null or 
whitespace-only address yields the `namesrvAddr is required` violation.
     - `acceptsSemicolonSeparatedClusterAddresses`: the multi-broker address 
form passes.
   
   ### Testing
   
   - `mvn -B test -Dtest=TestConnectionDTOTest` passes (4 tests, all green).


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