yyqdbngt opened a new pull request, #3547:
URL: https://github.com/apache/rocketmq-dashboard/pull/3547
### Summary
Adds the first dedicated unit test suite for `DeleteTopicDTO`, the payload
of the topic delete endpoint.
The DTO requires a non-blank topic `name` and keeps `instanceId` optional.
The tests cover the required-name rule and the optional routing field.
### Changes
-
`server/src/test/java/org/apache/rocketmq/studio/instance/topic/DeleteTopicDTOTest.java`
- `acceptsCompletePayload`: topic name plus instance id passes.
- `rejectsMissingName` / `rejectsBlankName`: null or blank name yields the
`name is required` violation.
- `instanceIdRemainsOptional`: an id-less payload validates cleanly.
### Testing
- `mvn -B test -Dtest=DeleteTopicDTOTest` 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]