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

   ### Summary
   
   Adds the first dedicated unit test suite for `BulkDeleteAlertRulesDTO`, the 
payload of the multi-delete alert rule endpoint.
   
   The DTO enforces a non-empty id list capped at 100 entries with no null 
elements. The tests cover the empty, element-level, overflow and boundary cases.
   
   ### Changes
   
   - 
`server/src/test/java/org/apache/rocketmq/studio/ops/alert/BulkDeleteAlertRulesDTOTest.java`
     - `acceptsNonEmptyIdList`: a two-id list passes.
     - `rejectsNullIds` / `rejectsEmptyIdList`: missing or empty list yields 
`ids are required`.
     - `rejectsNullIdInsideList`: a null element yields `rule id is required`.
     - `rejectsMoreThanHundredIds` / `acceptsExactlyHundredIds`: the 100-entry 
cap plus its boundary.
   
   ### Testing
   
   - `mvn -B test -Dtest=BulkDeleteAlertRulesDTOTest` passes (6 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