yyqdbngt opened a new pull request, #3545:
URL: https://github.com/apache/rocketmq-dashboard/pull/3545
### Summary
Adds the first dedicated unit test suite for `DeleteNameServerDTO`, the
payload of the name server removal endpoint.
The DTO requires both `clusterId` and `addr`. The tests cover the
required-field rule for both fields in null and blank forms.
### Changes
-
`server/src/test/java/org/apache/rocketmq/studio/cluster/nameserver/DeleteNameServerDTOTest.java`
- `acceptsCompletePayload`: cluster id plus address passes.
- `rejectsMissingClusterId` / `rejectsBlankClusterId`: null or blank
`clusterId` yields `clusterId is required`.
- `rejectsMissingAddr` / `rejectsBlankAddr`: null or blank `addr` yields
`addr is required`.
### Testing
- `mvn -B test -Dtest=DeleteNameServerDTOTest` passes (5 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]