yyqdbngt opened a new pull request, #3540:
URL: https://github.com/apache/rocketmq-dashboard/pull/3540
### Summary
Adds the first dedicated unit test suite for `BatchDeleteInstancesDTO`, the
payload of the multi-instance delete endpoint.
The DTO relies on a plain `@NotEmpty` over the instance id list. The tests
verify that a non-empty list passes and that both a null and an empty list are
rejected with exactly one violation each.
### Changes
-
`server/src/test/java/org/apache/rocketmq/studio/instance/BatchDeleteInstancesDTOTest.java`
- `acceptsNonEmptyIdList`: a two-id list passes validation.
- `rejectsNullIds`: an unset list reports a single violation.
- `rejectsEmptyIdList`: an empty list reports a single violation.
### Testing
- `mvn -B test -Dtest=BatchDeleteInstancesDTOTest` passes (3 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]