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

   ### Summary
   
   Adds the first dedicated unit test suite for `OpsVipChannelDTO`, the payload 
of the broker VIP channel toggle endpoint.
   
   The DTO carries a mandatory `useVIPChannel` Boolean flag. The tests cover 
both flag values and the missing-flag rejection.
   
   ### Changes
   
   - 
`server/src/test/java/org/apache/rocketmq/studio/ops/OpsVipChannelDTOTest.java`
     - `acceptsEnabledFlag`: `useVIPChannel = true` passes validation.
     - `acceptsDisabledFlag`: `useVIPChannel = false` passes validation.
     - `rejectsMissingFlag`: a null flag yields the `useVIPChannel is required` 
violation.
   
   ### Testing
   
   - `mvn -B test -Dtest=OpsVipChannelDTOTest` passes (3 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