yyqdbngt opened a new pull request, #3764: URL: https://github.com/apache/rocketmq-dashboard/pull/3764
### Motivation The existing `AlertSilenceControllerTest` only covers the happy paths of list/create. This PR deepens the controller coverage so the default `page`/`size` handling and the error path for a missing request body are locked in. ### Changes - `listPageShouldUseBoundedDefaultsTest`: GET `/api/alert-silences/page` without query params must delegate to `silenceService.listPage(1, 20)` and return 200 with the page payload. - `createShouldRejectNullBodyTest`: POST `/api/alert-silences` with an empty body returns 400 and the service layer stays untouched (`verifyNoInteractions`). ### Verification ``` mvn -B test -Dtest=AlertSilenceControllerTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0 [INFO] BUILD SUCCESS ``` -- 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]
