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