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

   ### Summary
   
   Adds the first dedicated unit test suite for `DeleteRequestDTO`, the shared 
delete-by-id body used across endpoints.
   
   The DTO keeps the id as a `String` so name-based cloud backends work too, 
and treats `instanceId` as optional routing metadata. The tests cover the 
required id rule and the optional instance id.
   
   ### Changes
   
   - 
`server/src/test/java/org/apache/rocketmq/studio/common/domain/DeleteRequestDTOTest.java`
     - `acceptsCompletePayload`: id plus instance id passes validation.
     - `rejectsMissingId` / `rejectsBlankId`: null or blank id yields the `id 
is required` violation.
     - `instanceIdRemainsOptional`: an id-only payload validates cleanly.
   
   ### Testing
   
   - `mvn -B test -Dtest=DeleteRequestDTOTest` 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