yyqdbngt opened a new pull request, #3549:
URL: https://github.com/apache/rocketmq-dashboard/pull/3549
### Summary
Adds the first dedicated unit test suite for `DeleteNameserverRegistryDTO`,
the payload of the name server registry removal endpoint.
The DTO requires a numeric registry `id`. The tests cover the accepted id
and the missing-id rejection.
### Changes
-
`server/src/test/java/org/apache/rocketmq/studio/cluster/nameserver/DeleteNameserverRegistryDTOTest.java`
- `acceptsNumericId`: a populated id passes validation.
- `rejectsMissingId`: a null id yields the `id is required` violation.
### Testing
- `mvn -B test -Dtest=DeleteNameserverRegistryDTOTest` passes (2 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]