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

   ### Summary
   
   Adds the first dedicated unit test suite for `DeleteConsumerGroupDTO`, the 
payload of the consumer group delete endpoint.
   
   The DTO requires a `name` and keeps `instanceId` optional. The tests cover 
the required name and the optional instance routing field.
   
   ### Changes
   
   - 
`server/src/test/java/org/apache/rocketmq/studio/instance/group/DeleteConsumerGroupDTOTest.java`
     - `acceptsCompletePayload`: group name plus instance id passes.
     - `rejectsMissingName` / `rejectsBlankName`: null or blank name yields 
`name is required`.
     - `instanceIdRemainsOptional`: an id-less payload validates cleanly.
   
   ### Testing
   
   - `mvn -B test -Dtest=DeleteConsumerGroupDTOTest` passes (4 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